-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modifications to enable running the playbooks on VMs.
Create playbook_vm.yml to replace image_base and image_service to work on VM with become. Change the ci user UID so it does not collide with cloud-user and fedora user. Modify packages role so it recognizes rhel and applies pieces on appropriate host groups. Replace freeipa with ipa for RHEL. Improve ldap and ipa task idempotency. Ignore vagrant specific pieces in ad role, remove hardcoded vagrant password.
- Loading branch information
1 parent
6620cce
commit 0d816bd
Showing
13 changed files
with
321 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- | ||
# This playbook is to apply tasks similar to image_base and image_service | ||
# on virtual machines instead of containers as the roles need become true there | ||
# Some of the pieces also do not make any sense to apply on VMs. | ||
|
||
- hosts: all:!ad:!dns.test | ||
gather_facts: yes | ||
become: yes | ||
vars_files: | ||
- variables.yml | ||
roles: | ||
- facts | ||
- packages | ||
- common | ||
|
||
- hosts: ldap.test | ||
gather_facts: no | ||
become: yes | ||
vars_files: | ||
- variables.yml | ||
roles: | ||
- ldap | ||
|
||
- hosts: dc.samba.test | ||
gather_facts: no | ||
become: yes | ||
vars_files: | ||
- variables.yml | ||
roles: | ||
- samba | ||
|
||
- hosts: master.ipa.test | ||
gather_facts: no | ||
become: yes | ||
vars_files: | ||
- variables.yml | ||
roles: | ||
- ipa | ||
|
||
- hosts: client.test | ||
gather_facts: no | ||
become: yes | ||
vars_files: | ||
- variables.yml | ||
roles: | ||
- client | ||
|
||
- hosts: nfs.test | ||
gather_facts: no | ||
become: yes | ||
vars_files: | ||
- variables.yml | ||
roles: | ||
- nfs | ||
|
||
- hosts: kdc.test | ||
gather_facts: no | ||
become: yes | ||
vars_files: | ||
- variables.yml | ||
roles: | ||
- kdc |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- name: 'Facts are the same as in Fedora' | ||
include_tasks: 'Fedora.yml' |
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
Oops, something went wrong.