[add cosmos]
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
- hosts: bastion
|
- hosts: all
|
||||||
# vars:
|
# vars:
|
||||||
become: true
|
become: true
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
@@ -7,6 +7,10 @@
|
|||||||
# to reinstall netbird rm /usr/share/keyrings/netbird-archive-keyring.gpg
|
# to reinstall netbird rm /usr/share/keyrings/netbird-archive-keyring.gpg
|
||||||
# become root no password /etc/sudoers.d/20stephane => stephane ALL=(ALL) NOPASSWD: ALL
|
# become root no password /etc/sudoers.d/20stephane => stephane ALL=(ALL) NOPASSWD: ALL
|
||||||
|
|
||||||
|
- apt:
|
||||||
|
update_cache: yes
|
||||||
|
become: true
|
||||||
|
|
||||||
- ansible.builtin.pip:
|
- ansible.builtin.pip:
|
||||||
name: netaddr
|
name: netaddr
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
|||||||
1
hosts
1
hosts
@@ -1,6 +1,7 @@
|
|||||||
[netbird]
|
[netbird]
|
||||||
scaleway ansible_host=163.172.84.28 ansible_user=stephane
|
scaleway ansible_host=163.172.84.28 ansible_user=stephane
|
||||||
bastion ansible_host=163.172.70.242 ansible_user=stephane
|
bastion ansible_host=163.172.70.242 ansible_user=stephane
|
||||||
|
cosmos ansible_host=163.172.39.162 ansible_user=stephane
|
||||||
|
|
||||||
[tower]
|
[tower]
|
||||||
scaleway ansible_host=163.172.84.28 ansible_user=stephane
|
scaleway ansible_host=163.172.84.28 ansible_user=stephane
|
||||||
|
|||||||
18
update.yml
18
update.yml
@@ -20,22 +20,22 @@
|
|||||||
- apt:
|
- apt:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
become: true
|
become: true
|
||||||
when:
|
# when:
|
||||||
- inventory_hostname != 'scaleway'
|
# - inventory_hostname != 'scaleway'
|
||||||
|
|
||||||
|
|
||||||
- apt:
|
- apt:
|
||||||
upgrade: full
|
upgrade: full
|
||||||
become: true
|
become: true
|
||||||
when:
|
# when:
|
||||||
- inventory_hostname != 'scaleway'
|
# - inventory_hostname != 'scaleway'
|
||||||
|
|
||||||
|
|
||||||
- community.docker.docker_compose_v2:
|
# - community.docker.docker_compose_v2:
|
||||||
project_src: /opt/dockerapps/
|
# project_src: /opt/dockerapps/
|
||||||
pull: always
|
# pull: always
|
||||||
when:
|
# when:
|
||||||
- inventory_hostname == 'scaleway'
|
# - inventory_hostname == 'scaleway'
|
||||||
|
|
||||||
- shell: "if [ $(ls /var/run/reboot* 2>/dev/null | wc -l) -gt 0 ]; then echo 'reboot_needed'; fi"
|
- shell: "if [ $(ls /var/run/reboot* 2>/dev/null | wc -l) -gt 0 ]; then echo 'reboot_needed'; fi"
|
||||||
register: reboot_needed
|
register: reboot_needed
|
||||||
|
|||||||
Reference in New Issue
Block a user