Clean up some cruft
This commit is contained in:
42
playbooks/bootstrap.yml
Normal file
42
playbooks/bootstrap.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
# Note: need to specify extra_vars, providing ansible_ssh_user, and ansible_ssh_pass
|
||||
|
||||
- name: Set up IPA Client
|
||||
hosts: tag_ipa_client
|
||||
become: yes
|
||||
collections:
|
||||
- freeipa.ansible_freeipa
|
||||
pre_tasks:
|
||||
- name: Set hostname
|
||||
hostname:
|
||||
name: "{{inventory_hostname}}"
|
||||
|
||||
- name: Attach subscriptions
|
||||
command: '/usr/bin/subscription-manager attach'
|
||||
register: result
|
||||
changed_when:
|
||||
- '"All installed products are covered by valid entitlements. No need to update subscriptions at this time." not in result.stdout'
|
||||
when: ansible_distribution == "RedHat"
|
||||
|
||||
|
||||
roles:
|
||||
- role: debian-freeipa-client
|
||||
when: ansible_os_family == "Debian"
|
||||
- role: ipaclient
|
||||
state: present
|
||||
when: ansible_os_family == "RedHat"
|
||||
|
||||
- name: Set up Basic Lab Packages
|
||||
hosts: all
|
||||
become: yes
|
||||
roles:
|
||||
- role: toal-common
|
||||
|
||||
- name: Packages
|
||||
hosts: all
|
||||
become: yes
|
||||
tasks:
|
||||
|
||||
- name: Host Packages
|
||||
package:
|
||||
state: present
|
||||
name: "{{ host_packages }}"
|
||||
Reference in New Issue
Block a user