File tree Expand file tree Collapse file tree 3 files changed +18
-20
lines changed Expand file tree Collapse file tree 3 files changed +18
-20
lines changed Original file line number Diff line number Diff line change 7
7
https_proxy : " {{ lookup('env', 'https_proxy') | default(omit) }}"
8
8
no_proxy : " {{ lookup('env', 'no_proxy') | default(omit) }}"
9
9
tasks :
10
- - name : set ansible_python_interpreter to "/usr/bin/python3" on fedora
11
- set_fact :
12
- ansible_python_interpreter : " /usr/bin/python3"
13
- when : ansible_facts.distribution == 'Fedora'
14
-
15
- - name : Run the equivalent of "apt-get update && apt-get upgrade"
16
- apt :
17
- name : " *"
18
- state : latest
10
+ - name : Install Python3 on Debian 10
11
+ ansible.builtin.apt :
12
+ name : python3
13
+ state : present
19
14
update_cache : true
20
15
when : ansible_os_family == 'Debian'
21
16
22
- - name : install required tools on SuSE
17
+ - name : Set ansible_python_interpreter to "/usr/bin/python3"
18
+ ansible.builtin.set_fact :
19
+ ansible_python_interpreter : /usr/bin/python3
20
+
21
+ - name : Install required tools on SuSE
23
22
# cannot use zypper module, since it depends on python-xml
24
23
ansible.builtin.shell : zypper -n install python-xml
25
24
when : ansible_facts.os_family == 'Suse'
Original file line number Diff line number Diff line change 20
20
- verify_tasks/netrc.yml
21
21
- verify_tasks/ignore_home_folders.yml
22
22
23
- # temp. disabled - https://github.com/dev-sec/ansible-collection-hardening/issues/690
24
- # - name: include PAM tests
25
- # include_tasks: verify_tasks/pam.yml
26
- # when: ansible_facts.distribution in ['Debian', 'Ubuntu'] or ansible_facts.os_family == 'RedHat'
27
-
28
- - name : include YUM tests
29
- include_tasks : verify_tasks/yum.yml
23
+ - name : Include YUM tests
24
+ ansible.builtin.include_tasks : verify_tasks/yum.yml
30
25
when : ansible_facts.os_family == 'RedHat'
31
26
27
+ - name : Include PAM tests
28
+ ansible.builtin.include_tasks : verify_tasks/pam.yml
29
+ when : ansible_facts.distribution in ['Debian', 'Ubuntu'] or ansible_facts.os_family == 'RedHat'
30
+
32
31
- name : Verify
33
32
hosts : localhost
34
33
environment :
Original file line number Diff line number Diff line change 12
12
state : present
13
13
executable : /usr/bin/pip3
14
14
15
- - name : set password for test
16
- set_fact :
17
- test_pw : " myTest!pw "
15
+ - name : Set password for test
16
+ ansible.builtin. set_fact :
17
+ test_pw : myTestpwSage
18
18
19
19
- name : Set locale for test
20
20
ansible.builtin.set_fact :
You can’t perform that action at this time.
0 commit comments