Fix to evobackup-client variable names
Somehow, an extra _ managed to slide itself in a few places.
This commit is contained in:
parent
7d6a552c09
commit
c773c901f2
|
@ -1,13 +1,13 @@
|
||||||
---
|
---
|
||||||
evobackup-client__root_key_path: "/root/.ssh/evobackup_id"
|
evobackup-client__root_key_path: "/root/.ssh/evobackup_id"
|
||||||
evobackup-client___cron_path: "/etc/cron.daily/zzz_evobackup"
|
evobackup-client__cron_path: "/etc/cron.daily/zzz_evobackup"
|
||||||
evobackup-client___cron_template_name: "zzz_evobackup"
|
evobackup-client__cron_template_name: "zzz_evobackup"
|
||||||
evobackup-client___mail: null
|
evobackup-client__mail: null
|
||||||
evobackup-client__pid_path: "/var/run/evobackup.pid"
|
evobackup-client__pid_path: "/var/run/evobackup.pid"
|
||||||
evobackup-client___log_path: "/var/log/evobackup.log"
|
evobackup-client__log_path: "/var/log/evobackup.log"
|
||||||
evobackup-client__backup_path: "/home/backup"
|
evobackup-client__backup_path: "/home/backup"
|
||||||
evobackup-client___ssh_port: null
|
evobackup-client__ssh_port: null
|
||||||
evobackup-client___hosts: null
|
evobackup-client__hosts: null
|
||||||
# - name: "backups.example.org"
|
# - name: "backups.example.org"
|
||||||
# ip: "xxx.xxx.xxx.xxx"
|
# ip: "xxx.xxx.xxx.xxx"
|
||||||
# fingerprint: "ecdsa-sha2-nistp256 ..."
|
# fingerprint: "ecdsa-sha2-nistp256 ..."
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
blockinfile:
|
blockinfile:
|
||||||
dest: /etc/default/minifirewall
|
dest: /etc/default/minifirewall
|
||||||
marker: "# evobackup ssh port"
|
marker: "# evobackup ssh port"
|
||||||
block: "evobackup_port={{ evobackup-client___ssh_port }}"
|
block: "evobackup_port={{ evobackup-client__ssh_port }}"
|
||||||
when: evobackup-client__minifirewall.stat.exists
|
when: evobackup-client__minifirewall.stat.exists
|
||||||
tags:
|
tags:
|
||||||
- evobackup-client
|
- evobackup-client
|
||||||
|
@ -23,8 +23,8 @@
|
||||||
dest: /etc/default/minifirewall
|
dest: /etc/default/minifirewall
|
||||||
marker: "# {{ item.name }}"
|
marker: "# {{ item.name }}"
|
||||||
block: |
|
block: |
|
||||||
/sbin/iptables -A INPUT -p tcp --sport {{ evobackup-client___ssh_port }} --dport 1024:65535 -s {{ item.ip }} -m state --state ESTABLISHED,RELATED -j ACCEPT
|
/sbin/iptables -A INPUT -p tcp --sport {{ evobackup-client__ssh_port }} --dport 1024:65535 -s {{ item.ip }} -m state --state ESTABLISHED,RELATED -j ACCEPT
|
||||||
with_items: "{{ evobackup-client___hosts }}"
|
with_items: "{{ evobackup-client__hosts }}"
|
||||||
when: evobackup-client__minifirewall.stat.exists
|
when: evobackup-client__minifirewall.stat.exists
|
||||||
tags:
|
tags:
|
||||||
- evobackup-client
|
- evobackup-client
|
||||||
|
|
|
@ -3,13 +3,13 @@
|
||||||
- name: Upload evobackup script
|
- name: Upload evobackup script
|
||||||
template:
|
template:
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
dest: "{{ evobackup-client___cron_path }}"
|
dest: "{{ evobackup-client__cron_path }}"
|
||||||
force: true
|
force: true
|
||||||
mode: 0755
|
mode: 0755
|
||||||
with_first_found:
|
with_first_found:
|
||||||
- "templates/evobackup-client/{{ evobackup-client___cron_template_name }}.{{ inventory_hostname }}.sh.j2"
|
- "templates/evobackup-client/{{ evobackup-client__cron_template_name }}.{{ inventory_hostname }}.sh.j2"
|
||||||
- "templates/evobackup-client/{{ evobackup-client___cron_template_name }}.{{ host_group }}.sh.j2"
|
- "templates/evobackup-client/{{ evobackup-client__cron_template_name }}.{{ host_group }}.sh.j2"
|
||||||
- "templates/evobackup-client/{{ evobackup-client___cron_template_name }}.sh.j2"
|
- "templates/evobackup-client/{{ evobackup-client__cron_template_name }}.sh.j2"
|
||||||
- "zzz_evobackup.default.sh.j2"
|
- "zzz_evobackup.default.sh.j2"
|
||||||
tags:
|
tags:
|
||||||
- evobackup-client
|
- evobackup-client
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
- name: Verify evolix backup servers
|
- name: Verify evolix backup servers
|
||||||
known_hosts:
|
known_hosts:
|
||||||
path: /root/.ssh/known_hosts
|
path: /root/.ssh/known_hosts
|
||||||
name: "[{{ item.name }}]:{{ evobackup-client___ssh_port }}"
|
name: "[{{ item.name }}]:{{ evobackup-client__ssh_port }}"
|
||||||
key: "[{{ item.name }}]:{{ evobackup-client___ssh_port }} {{ item.fingerprint }}"
|
key: "[{{ item.name }}]:{{ evobackup-client__ssh_port }} {{ item.fingerprint }}"
|
||||||
with_list: "{{ evobackup-client___hosts }}"
|
with_list: "{{ evobackup-client__hosts }}"
|
||||||
tags:
|
tags:
|
||||||
- evobackup-client
|
- evobackup-client
|
||||||
- evobackup-client-backup-hosts
|
- evobackup-client-backup-hosts
|
||||||
|
|
|
@ -18,10 +18,10 @@
|
||||||
##### Configuration ###################################################
|
##### Configuration ###################################################
|
||||||
|
|
||||||
# email adress for notifications
|
# email adress for notifications
|
||||||
MAIL={{ evobackup-client___mail }}
|
MAIL={{ evobackup-client__mail }}
|
||||||
|
|
||||||
# list of hosts (hostname or IP) and SSH port for Rsync
|
# list of hosts (hostname or IP) and SSH port for Rsync
|
||||||
SERVERS="{% for host in evobackup-client___hosts %}{{ host.name }}:{{ evobackup-client___ssh_port }} {% endfor %}"
|
SERVERS="{% for host in evobackup-client__hosts %}{{ host.name }}:{{ evobackup-client__ssh_port }} {% endfor %}"
|
||||||
|
|
||||||
# timeout (in seconds) for SSH connections
|
# timeout (in seconds) for SSH connections
|
||||||
SSH_CONNECT_TIMEOUT=30
|
SSH_CONNECT_TIMEOUT=30
|
||||||
|
|
Loading…
Reference in a new issue