feat: initial commit
This commit is contained in:
parent
010b0d0b91
commit
96c7114e76
10 changed files with 158 additions and 93 deletions
22
playbook.yaml
Normal file
22
playbook.yaml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
|
||||
# execute this role
|
||||
- name: "install and configure the NFS server"
|
||||
hosts: "all"
|
||||
become: true
|
||||
vars_files: "vars/shares.yaml"
|
||||
tasks:
|
||||
|
||||
# due to semaphore bug we need to do this ourselves
|
||||
- name: "force-update requirements"
|
||||
ansible.builtin.command:
|
||||
cmd: "ansible-galaxy install -f -r roles/requirements.yml"
|
||||
become: false
|
||||
delegate_to: "localhost"
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
|
||||
# execute the role
|
||||
- name: "execute role: nfs_server"
|
||||
ansible.builtin.include_role:
|
||||
name: "nfs_server"
|
||||
Loading…
Add table
Add a link
Reference in a new issue