File tree 7 files changed +44
-8
lines changed
7 files changed +44
-8
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,22 @@ This role requires Ansible 2.0 or higher.
35
35
36
36
Available variables are listed below, along with default values.
37
37
38
+ controlhost_dependency_maven: true
39
+
40
+ Enables / disables the maven role dependency.
41
+
42
+ controlhost_dependency_java: true
43
+
44
+ Enables / disables the java role dependency.
45
+
46
+ controlhost_dependency_epel: true
47
+
48
+ Enables / disables the epel role dependency.
49
+
50
+ controlhost_dependency_terraform: true
51
+
52
+ Enables / disables the terraform role dependency.
53
+
38
54
controlhost_user: "{{ ansible_env.SUDO_USER | default(ansible_env.USER) }}"
39
55
40
56
The user on the controlhost.
Original file line number Diff line number Diff line change
1
+ # Enables / disables the maven role dependency
2
+ controlhost_dependency_maven : true
3
+
4
+ # Enables / disables the java role dependency
5
+ controlhost_dependency_java : true
6
+
7
+ # Enables / disables the epel role dependency
8
+ controlhost_dependency_epel : true
9
+
10
+ # Enables / disables the terraform role dependency
11
+ controlhost_dependency_terraform : true
12
+
1
13
# The user on the controlhost
2
14
controlhost_user : " {{ ansible_env.SUDO_USER | default(ansible_env.USER) }}"
3
15
# The users group on the controlhost
Original file line number Diff line number Diff line change @@ -28,28 +28,34 @@ dependencies:
28
28
" dependency" ,
29
29
" dependency.epel"
30
30
],
31
- when : ansible_os_family == 'RedHat'
31
+ when : [
32
+ ansible_os_family == 'RedHat',
33
+ controlhost_dependency_epel
34
+ ]
32
35
}
33
36
- {
34
37
role : srsp.oracle-java,
35
38
version : 2.19.1,
36
39
tags : [
37
40
" dependency" ,
38
41
" dependency.java"
39
- ]
42
+ ],
43
+ when : controlhost_dependency_java
40
44
}
41
45
- {
42
46
role : gantsign.maven,
43
47
version : 4.0.0,
44
48
tags : [
45
49
" dependency" ,
46
50
" dependency.maven"
47
- ]
51
+ ],
52
+ when : controlhost_dependency_maven
48
53
}
49
54
- { role: andrewrothstein.terraform,
50
55
version : v2.2.10,
51
56
tags : [
52
57
" dependency" ,
53
58
" dependency.terraform"
54
- ]
59
+ ],
60
+ when : controlhost_dependency_terraform
55
61
}
Original file line number Diff line number Diff line change 1
1
- name : " env : setup : Configure default editor"
2
2
blockinfile :
3
3
path : " {{ controlhost_bashrc }}"
4
- block : " export EDITOR={{ controlhost_bashrc_editor }}"
4
+ block : " export EDITOR={{ controlhost_default_editor }}"
5
5
marker : " # {mark} editor ANSIBLE MANAGED BLOCK"
6
6
when : controlhost_default_editor is defined
7
7
Original file line number Diff line number Diff line change 1
1
- name : " Maven : encrypt_password : Encrpyt maven server password when maven master password is defined."
2
2
block :
3
3
- name : " Maven : encrypt_password : encrypt maven server password"
4
- shell : " mvn --encrypt-password {{ item.password }}"
4
+ command : " mvn --encrypt-password {{ item.password }}"
5
5
register : _maven_encrypted_server_password
6
6
become_user : " {{ controlhost_user }}"
7
+ become : yes
7
8
no_log : true
8
9
9
10
- name : " Maven : encrypt_password : set password fact for server with id : {{ item.id}}"
Original file line number Diff line number Diff line change 14
14
- name : " Maven : setup: Configure settings-security.xml"
15
15
block :
16
16
- name : " Maven : setup : create maven master password"
17
- shell : " mvn --encrypt-master-password {{ controlhost_maven_master_password }}"
17
+ command : " mvn --encrypt-master-password {{ controlhost_maven_master_password }}"
18
18
no_log : true
19
19
register : _maven_master_password_result
20
20
31
31
group : " {{ controlhost_group }}"
32
32
mode : 0640
33
33
34
- become_user : " {{ controlhost_user }}"
35
34
when :
36
35
- _maven_settings_security_stats.stat.exists == false
37
36
- controlhost_maven_master_password is defined
Original file line number Diff line number Diff line change 3
3
name : " pip"
4
4
state : latest
5
5
when : controlhost_packages_pip_upgrade
6
+ tags :
7
+ - skip_ansible_lint
6
8
7
9
- name : " packages : pip : Install required PIP packages."
8
10
pip :
You can’t perform that action at this time.
0 commit comments