Changeset - f4962ad6a0ec
[Not reviewed]
0 2 0
Branko Majic (branko) - 7 years ago 2017-06-11 21:08:55
branko@majic.rs
MAR-108: Small fixes for backup_client role:

- Make sure that the /etc/duply/main/include file exists even if no backup
patterns (via backup role) have been provided).
- Fixed issue with backup_server_port not being used in the Duply configuration
file.
2 files changed with 10 insertions and 1 deletions:
0 comments (0 inline, 0 general)
roles/backup_client/tasks/main.yml
Show inline comments
 
@@ -78,6 +78,15 @@
 
  cron: name=backup cron_file=backup hour=2 minute=0 job="/usr/bin/duply main backup"
 
        state=present user=root
 

	
 
- name: Ensure the file with include patterns exists (but do not overwrite)
 
  copy:
 
    content: ""
 
    dest: /etc/duply/main/include
 
    force: no
 
    group: root
 
    owner: root
 
    mode: 0600
 

	
 
- name: Explicitly run all handlers
 
  include: ../handlers/main.yml
 
  when: "handlers | default(False) | bool() == True"
roles/backup_client/templates/known_hosts.j2
Show inline comments
 
{% for item in backup_server_host_ssh_public_keys %}
 
[{{ backup_server }}]:2222 {{ item }}
 
[{{ backup_server }}]:{{ backup_server_port }} {{ item }}
 
{{ backup_server }} {{ item }}
 
{% endfor %}
0 comments (0 inline, 0 general)