forked from lukeharvey/ansible-initial-server-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenwrt_maintenance.yml
18 lines (18 loc) · 979 Bytes
/
openwrt_maintenance.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
# https://stackoverflow.com/questions/18195142/safely-limiting-ansible-playbooks-to-a-single-machine
- hosts: "{{ target | default('openwrt') }}"
# strategy: free
strategy: linear
# gather_facts: no
remote_user: "{{ remote_user | default('rootsh') }}" # so keeps working even fresh after upgrade, but not on a brand-new installation - supply '-e remote_user=root' for a new installation
vars:
ansible_ssh_transfer_method: scp
ansible_scp_extra_args: -O #https://github.com/gekmihesg/ansible-openwrt/pull/59 https://github.com/gekmihesg/ansible-openwrt/issues/64 https://github.com/ansible/ansible/issues/82239 https://github.com/gekmihesg/ansible-openwrt/pull/67
vars_files:
- vars/openwrt.yml
roles:
# FIXME: we may get bitten by https://github.com/ansible/ansible/issues/82239 when upgrading Debian Trixie
# A possible fix is https://github.com/gekmihesg/ansible-openwrt/pull/67
- gekmihesg.openwrt
- install_files
- openwrt