Finish moving backup03->backup01
This commit is contained in:
parent
5d3bb7b4b6
commit
e30df424d2
4 changed files with 3 additions and 6 deletions
|
@ -4,7 +4,7 @@
|
||||||
# NOTE: most of these vars_path come from group_vars/backup_server or from hostvars
|
# NOTE: most of these vars_path come from group_vars/backup_server or from hostvars
|
||||||
|
|
||||||
- name: make backup server system
|
- name: make backup server system
|
||||||
hosts: backup03.phx2.fedoraproject.org:backup01.phx2.fedoraproject.org
|
hosts: backup01.phx2.fedoraproject.org
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: True
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@
|
||||||
mnt_dir: '/fedora_backups',
|
mnt_dir: '/fedora_backups',
|
||||||
nfs_mount_opts: "rw,hard,bg,intr,noatime,nodev,nosuid",
|
nfs_mount_opts: "rw,hard,bg,intr,noatime,nodev,nosuid",
|
||||||
nfs_src_dir: '/fedora_backups' }
|
nfs_src_dir: '/fedora_backups' }
|
||||||
|
- openvpn/client
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- include: "{{ tasks }}/yumrepos.yml"
|
- include: "{{ tasks }}/yumrepos.yml"
|
||||||
|
@ -50,7 +51,6 @@
|
||||||
|
|
||||||
- name: Schedule the GNOME backup script
|
- name: Schedule the GNOME backup script
|
||||||
cron: name="Backup" hour=5 minute=0 job="(cd /fedora_backups/gnome/; /usr/local/bin/lock-wrapper gnomebackup /usr/local/bin/gnome_backup)" user=gnomebackup
|
cron: name="Backup" hour=5 minute=0 job="(cd /fedora_backups/gnome/; /usr/local/bin/lock-wrapper gnomebackup /usr/local/bin/gnome_backup)" user=gnomebackup
|
||||||
when: inventory_hostname.startswith('backup03')
|
|
||||||
|
|
||||||
- name: Add a Directory for each of the GNOME machines
|
- name: Add a Directory for each of the GNOME machines
|
||||||
file: dest=/fedora_backups/gnome/{{ item }} owner=gnomebackup group=gnomebackup state=directory
|
file: dest=/fedora_backups/gnome/{{ item }} owner=gnomebackup group=gnomebackup state=directory
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
# ifconfig-push actualIP PtPIP
|
# ifconfig-push actualIP PtPIP
|
||||||
ifconfig-push 192.168.1.142 192.168.0.142
|
ifconfig-push 192.168.1.64 192.168.0.64
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
# ifconfig-push actualIP PtPIP
|
|
||||||
ifconfig-push 192.168.1.64 192.168.0.64
|
|
|
@ -18,4 +18,3 @@
|
||||||
copy: src="{{ files }}/rdiff-backup/run-rdiff-backups.cron" dest=/etc/cron.d/run-rdiff-backups
|
copy: src="{{ files }}/rdiff-backup/run-rdiff-backups.cron" dest=/etc/cron.d/run-rdiff-backups
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
when: inventory_hostname.startswith('backup03')
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue