feat: ping inventory, update and install packages
This commit is contained in:
parent
371a88c8de
commit
a1cca8b0bf
2 changed files with 20 additions and 0 deletions
1
sandbox/terraform/libvirt/ubuntu/ansible/.gitignore
vendored
Normal file
1
sandbox/terraform/libvirt/ubuntu/ansible/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
inventory/
|
19
sandbox/terraform/libvirt/ubuntu/ansible/init.sh
Executable file
19
sandbox/terraform/libvirt/ubuntu/ansible/init.sh
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
ansible live \
|
||||
-m ansible.builtin.ping \
|
||||
-i ./ansible/inventory
|
||||
|
||||
ansible live \
|
||||
-m ansible.builtin.apt \
|
||||
-f 10 \
|
||||
-a "update_cache=yes upgrade=safe" \
|
||||
-i ./ansible/inventory/
|
||||
|
||||
|
||||
ansible live \
|
||||
-m ansible.builtin.apt \
|
||||
-f 10 \
|
||||
-a "name=nginx,git,curl,wget,vim,zip,nginx" \
|
||||
-i ./ansible/inventory/
|
Loading…
Add table
Reference in a new issue