playbook: system-upgrade.yml
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
### runnning against default hosts
|
||||||
|
ansible-playbook --ask-become-pass system-upgrade.yml
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
[defaults]
|
[defaults]
|
||||||
inventory=inventory
|
inventory=inventory
|
||||||
private_key_file=~/.ssh/id_ed25519
|
private_key_file=~/.ssh/id_ed25519
|
||||||
|
|
||||||
|
[tiijay]
|
||||||
|
inventory=inventory2
|
||||||
|
private_key_file=~/.ssh/id_ed25519
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
[default]
|
||||||
j-agent-01
|
j-agent-01
|
||||||
j-agent-02
|
j-agent-02
|
||||||
j-agent-03
|
j-agent-03
|
||||||
@@ -6,3 +7,7 @@ docker-registry
|
|||||||
jenkins
|
jenkins
|
||||||
gitea
|
gitea
|
||||||
pihole
|
pihole
|
||||||
|
|
||||||
|
[tiijay]
|
||||||
|
microk8s
|
||||||
|
nginx
|
||||||
|
|||||||
9
system-upgrade.yml
Normal file
9
system-upgrade.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- hosts: default
|
||||||
|
become: true
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: update respository index
|
||||||
|
apt:
|
||||||
|
update_cache: yes
|
||||||
Reference in New Issue
Block a user