Compare commits

...

4 commits

4 changed files with 10 additions and 17 deletions

View file

@ -1 +0,0 @@
# OpenWRT-specific variables go here

View file

@ -3,12 +3,5 @@
# 172.22.90.75 ansible_ssh_common_args="-o StrictHostKeyChecking=no" # 172.22.90.75 ansible_ssh_common_args="-o StrictHostKeyChecking=no"
# Bare Metal Nodes # Bare Metal Nodes
10.0.10.169 ansible_ssh_common_args="-o StrictHostKeyChecking=no" 10.0.10.169 ansible_ssh_common_args="-o StrictHostKeyChecking=no"
# 10.0.10.4 ansible_ssh_common_args="-o StrictHostKeyChecking=no" 10.0.10.4 ansible_ssh_common_args="-o StrictHostKeyChecking=no"
# 10.0.10.141 ansible_ssh_common_args="-o StrictHostKeyChecking=no" 10.0.10.141 ansible_ssh_common_args="-o StrictHostKeyChecking=no"
# 10.0.10.64 ansible_ssh_common_args="-o StrictHostKeyChecking=no"
[openwrt]
# Not enough storage space for these devices to support Ansible
# 10.0.10.1
# 10.0.10.2
# 10.0.10.3

View file

@ -62,6 +62,11 @@
state: latest state: latest
- name: Install ACME - name: Install ACME
shell: curl https://get.acme.sh | sh -s email="{{ ACME_EMAIL }}" shell: curl https://get.acme.sh | sh -s email="{{ ACME_EMAIL }}"
- name: Ensure ACME directory exists
file:
path: ~/.acme.sh/.ssh/
state: directory
mode: "0700"
- name: Enable Syncthing Service - name: Enable Syncthing Service
command: systemctl enable syncthing@root.service command: systemctl enable syncthing@root.service
- name: Start Syncthing Service - name: Start Syncthing Service

View file

@ -6,21 +6,17 @@
tasks: tasks:
- name: Update Docker - name: Update Docker
apt: apt:
name: name: docker
- docker
update_cache: true update_cache: true
autoremove: true autoremove: true
state: latest state: latest
notify: Restart Docker Containers
- name: Update all packages - name: Update all packages
apt: apt:
name: "*"
update_cache: false update_cache: false
autoremove: true autoremove: true
state: latest state: latest
- name: Update ACME - name: Update ACME
command: /root/.acme.sh/acme.sh --upgrade --auto-upgrade command: /root/.acme.sh/acme.sh --upgrade --auto-upgrade
- name: Restart All Services
handlers:
# Restart Docker Containers on Docker Update
- name: Restart Docker Containers
command: bash "/root/scripts/start_services.sh" command: bash "/root/scripts/start_services.sh"