-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce code duplication in molecule scenarios prepare phase
- Loading branch information
Showing
21 changed files
with
116 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
--- | ||
aphrodite_user: jenkins | ||
aphrodite: | ||
trackers: | ||
bugzilla: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
--- | ||
git_user: jenkins | ||
git: | ||
ssl: | ||
verify: false | ||
|
@@ -10,4 +11,4 @@ git: | |
- user: jenkins | ||
email: [email protected] | ||
name: "JBoss SET" | ||
home: "/home/jenkins/" | ||
home: "/home/jenkins/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,34 @@ | ||
--- | ||
- name: Prepare | ||
hosts: all | ||
tasks: | ||
- name: "Display Ansible version" | ||
ansible.builtin.debug: | ||
msg: "Ansible version is {{ ansible_version.full }}" | ||
|
||
- name: Display Ansible version | ||
ansible.builtin.debug: | ||
msg: "Ansible version is {{ ansible_version.full }}" | ||
- name: "Install sudo if user is root" | ||
ansible.builtin.yum: | ||
name: sudo | ||
state: present | ||
when: | ||
- ansible_user_id == "root" | ||
|
||
- name: Add the user "{{ user }}" | ||
ansible.builtin.user: | ||
name: "{{ user }}" | ||
when: | ||
- users is defined and users | length > 0 | ||
loop: "{{ users }}" | ||
loop_control: | ||
loop_var: user | ||
|
||
- name: "Creates directory" | ||
become: yes | ||
ansible.builtin.file: | ||
path: "{{ dir.path }}" | ||
state: "{{ dir.state | default('directory') }}" | ||
owner: "{{ dir.owner | default('root') }}" | ||
group: "{{ dir.group | default('root') }}" | ||
mode: "{{ dir.mode | default('0644') }}" | ||
when: | ||
- dirs is defined and dirs | length > 0 | ||
loop: "{{ dirs }}" | ||
loop_control: | ||
loop_var: dir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.