mirror of
https://github.com/lemeow125/ansible-playbooks.git
synced 2025-04-19 00:11:27 +08:00
Compare commits
No commits in common. "9cdf61ff0b9da61ff7f1ba45aa2c19f3adc7cbd9" and "d7c89fc22535421509867ec12d2bc1b86a48a1c7" have entirely different histories.
9cdf61ff0b
...
d7c89fc225
4 changed files with 17 additions and 10 deletions
1
inventory/group_vars/openwrt.yml
Normal file
1
inventory/group_vars/openwrt.yml
Normal file
|
@ -0,0 +1 @@
|
|||
# OpenWRT-specific variables go here
|
|
@ -3,5 +3,12 @@
|
|||
# 172.22.90.75 ansible_ssh_common_args="-o StrictHostKeyChecking=no"
|
||||
# Bare Metal Nodes
|
||||
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.141 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.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
|
|
@ -62,11 +62,6 @@
|
|||
state: latest
|
||||
- name: Install ACME
|
||||
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
|
||||
command: systemctl enable syncthing@root.service
|
||||
- name: Start Syncthing Service
|
||||
|
|
|
@ -6,17 +6,21 @@
|
|||
tasks:
|
||||
- name: Update Docker
|
||||
apt:
|
||||
name: docker
|
||||
name:
|
||||
- docker
|
||||
update_cache: true
|
||||
autoremove: true
|
||||
state: latest
|
||||
notify: Restart Docker Containers
|
||||
- name: Update all packages
|
||||
apt:
|
||||
name: "*"
|
||||
update_cache: false
|
||||
autoremove: true
|
||||
state: latest
|
||||
- name: Update ACME
|
||||
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"
|
||||
|
|
Loading…
Add table
Reference in a new issue