File tree 9 files changed +23
-22
lines changed
plugins/foreman_openscap/seed/tasks
puppet_repositories/tasks
9 files changed +23
-22
lines changed Original file line number Diff line number Diff line change 36
36
become : true
37
37
38
38
- name : " Install RVM gpg key"
39
- shell : " gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3"
39
+ command : " gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3"
40
40
41
41
- name : " Install RVM"
42
- shell : " curl -sSL https://get.rvm.io | bash -s stable --ruby"
42
+ command : " curl -sSL https://get.rvm.io | bash -s stable --ruby"
43
43
44
44
- name : " Install librarian-puppet"
45
45
gem :
57
57
dest : " /home/vagrant/puppet-pulp/Puppetfile"
58
58
59
59
- name : " Install Puppet modules"
60
- shell : " /home/vagrant/bin/librarian-puppet install"
60
+ command : " /home/vagrant/bin/librarian-puppet install"
61
61
args :
62
62
chdir : " /home/vagrant/puppet-pulp"
63
63
remote_user : " vagrant"
83
83
84
84
- name : " Run puppet apply"
85
85
become : true
86
- shell : " /opt/puppetlabs/bin/puppet apply --modulepath=/home/vagrant/puppet-pulp/modules /home/vagrant/test.pp"
86
+ command : " /opt/puppetlabs/bin/puppet apply --modulepath=/home/vagrant/puppet-pulp/modules /home/vagrant/test.pp"
87
87
88
88
- name : " Open up permissions on server.conf"
89
89
become : true
106
106
chdir : " /home/vagrant/runcible"
107
107
108
108
- name : " Run tests"
109
- shell : " rake test mode=all"
109
+ command : " rake test mode=all"
110
110
args :
111
111
chdir : " /home/vagrant/runcible"
Original file line number Diff line number Diff line change 1
1
---
2
2
- name : ' Install dracut-fips'
3
- package :
3
+ package :
4
4
name : dracut-fips
5
5
state : present
6
6
21
21
ignore_errors : true
22
22
23
23
- name : Waiting for reboot
24
- local_action : wait_for
24
+ local_action : wait_for
25
25
host={{ ansible_ssh_host }}
26
26
state=started
27
27
Original file line number Diff line number Diff line change 1
1
---
2
2
- name : ' Import puppet classes'
3
- shell : >
3
+ command : >
4
4
{{ foreman_openscap_hammer }} proxy import-classes --name {{ foreman_openscap_proxy_name }}
5
- when : ' {{ foreman_openscap_proxy_name != False }} '
5
+ when : foreman_openscap_proxy_name != False
6
6
7
7
- name : ' Import default scap content'
8
- shell : >
8
+ command : >
9
9
foreman-rake foreman_openscap:bulk_upload:default
10
- when : ' {{ foreman_openscap_proxy_name != False }} '
10
+ when : foreman_openscap_proxy_name != False
11
11
12
12
# TODO: disabled until cli is fixed
13
13
# - name: 'Create example policy'
Original file line number Diff line number Diff line change 1
1
---
2
- - name : Add Pulp {{ pulp_repositories_version }} stable repository
2
+ - name : " Add Pulp {{ pulp_repositories_version }} stable repository"
3
3
yum_repository :
4
4
name : pulp-repository
5
5
description : Pulp release repository
23
23
yum_repository :
24
24
name : jortel-gofer
25
25
description : Copr repo for gofer owned by jortel
26
- baseurl : https://copr-be.cloud.fedoraproject.org/results/jortel/gofer/epel-{{ ansible_distribution_major_version }}-x86_64/
26
+ baseurl : " https://copr-be.cloud.fedoraproject.org/results/jortel/gofer/epel-{{ ansible_distribution_major_version }}-x86_64/"
27
27
gpgcheck : 1
28
28
gpgkey : https://copr-be.cloud.fedoraproject.org/results/jortel/gofer/pubkey.gpg
Original file line number Diff line number Diff line change 5
5
6
6
- name : ' Install Puppet 5 repository'
7
7
apt_repository :
8
- repo : deb http://apt.puppet.com {{ ansible_distribution_release }} puppet5
8
+ repo : " deb http://apt.puppet.com {{ ansible_distribution_release }} puppet5"
9
9
state : present
10
10
11
11
- name : ' Install backports'
17
17
apt :
18
18
name : ' openjdk-8-jre-headless'
19
19
state : present
20
- default_release : " {{ansible_distribution_release}}-backports"
20
+ default_release : " {{ ansible_distribution_release }}-backports"
21
21
when : ansible_distribution_release == "jessie"
Original file line number Diff line number Diff line change 25
25
apt :
26
26
name : ' openjdk-8-jre-headless'
27
27
state : present
28
- default_release : " {{ansible_distribution_release}}-backports"
28
+ default_release : " {{ ansible_distribution_release }}-backports"
29
29
when : ansible_distribution_release == "jessie"
Original file line number Diff line number Diff line change 1
1
- name : " Create alias for testing command"
2
- lineinfile :
3
- dest : ~/.bash_profile
2
+ lineinfile :
3
+ dest : ~/.bash_profile
4
4
line : " alias {{ pytest_project_alias }}=\" {{ pytest_project_command }}\" "
5
- when : pytest_project_alias != ""
5
+ when : pytest_project_alias
6
6
7
7
- debug :
8
8
msg : |
11
11
12
12
- debug :
13
13
msg : " The testing command is aliased as {{ pytest_project_alias }}"
14
- when : pytest_project_alias != ""
14
+ when : pytest_project_alias
Original file line number Diff line number Diff line change 14
14
- include_tasks : ssh.yml
15
15
16
16
- name : robottelo properties file
17
- shell : cp robottelo.properties.sample robottelo.properties
17
+ command : cp robottelo.properties.sample robottelo.properties
18
18
args :
19
19
chdir : " {{ robottelo_directory }}"
20
20
Original file line number Diff line number Diff line change 24
24
mode : 0700
25
25
become : true
26
26
27
- - lineinfile :
27
+ - name : " Ensure public key is in authorized_keys"
28
+ lineinfile :
28
29
line : " {{ lookup('file', unpriviledged_user_import_ssh_pub_key) }}"
29
30
path : " /home/{{ unpriviledged_user_username }}/.ssh/authorized_keys"
30
31
create : yes
You can’t perform that action at this time.
0 commit comments