ansible-lint fixes for host group playbooks
This commit is contained in:
parent
112d51c67f
commit
2e97e2af9e
28 changed files with 281 additions and 204 deletions
|
@ -1,16 +1,19 @@
|
|||
---
|
||||
- import_playbook: "include/deploy-kvm-guest.yml myhosts=nas"
|
||||
- name: Deploy KVM virtual machines
|
||||
ansible.builtin.import_playbook: >-
|
||||
include/deploy-kvm-guest.yml myhosts=nas
|
||||
|
||||
- name: configure instance
|
||||
- name: Configure instance
|
||||
hosts: nas
|
||||
user: root
|
||||
gather_facts: true
|
||||
|
||||
vars_files:
|
||||
- "{{ ansible_private }}/vars.yml"
|
||||
|
||||
pre_tasks:
|
||||
- name: mount /export/home
|
||||
mount:
|
||||
- name: Mount /export/home
|
||||
ansible.posix.mount:
|
||||
name: /export/home
|
||||
src: LABEL=home
|
||||
fstype: xfs
|
||||
|
@ -18,8 +21,8 @@
|
|||
passno: "0"
|
||||
dump: "0"
|
||||
state: mounted
|
||||
- name: mount /export/roles
|
||||
mount:
|
||||
- name: Mount /export/roles
|
||||
ansible.posix.mount:
|
||||
name: /export/roles
|
||||
src: LABEL=roles
|
||||
fstype: xfs
|
||||
|
@ -37,8 +40,8 @@
|
|||
principals: "nfs/{{ inventory_hostname }}@FOO.SH"
|
||||
|
||||
tasks:
|
||||
- name: copy exports file
|
||||
copy:
|
||||
- name: Copy exports file
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/exports
|
||||
content: |
|
||||
/export/home 172.20.30.0/24(rw,root_squash,secure,sec=krb5p) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue