Browse Source

Making linter hapy

Aleksandr Bogdanov 7 years ago
parent
commit
27ddd316e5
2 changed files with 4 additions and 4 deletions
  1. 1
    1
      roles/mailserver/tasks/opendmarc.yml
  2. 3
    3
      roles/tarsnap/tasks/tarsnap.yml

+ 1
- 1
roles/mailserver/tasks/opendmarc.yml View File

46
   when: db_created.changed
46
   when: db_created.changed
47
 
47
 
48
 - name: Copy nightly OpenDMARC report generation script into place
48
 - name: Copy nightly OpenDMARC report generation script into place
49
-  template: src=etc_opendmarc_report.sh.j2 dest=/etc/opendmarc/report.sh owner=root group=root mode="755"
49
+  template: src=etc_opendmarc_report.sh.j2 dest=/etc/opendmarc/report.sh owner=root group=root mode="0755"
50
 
50
 
51
 - name: Ensure initial report dat file exists with correct permissions
51
 - name: Ensure initial report dat file exists with correct permissions
52
   copy: content="" dest=/var/run/opendmarc/opendmarc.dat owner=opendmarc group=opendmarc
52
   copy: content="" dest=/var/run/opendmarc/opendmarc.dat owner=opendmarc group=opendmarc

+ 3
- 3
roles/tarsnap/tasks/tarsnap.yml View File

70
   command: make all install clean chdir=/root/tarsnap-autoconf-{{ tarsnap_version }} creates=/usr/local/bin/tarsnap
70
   command: make all install clean chdir=/root/tarsnap-autoconf-{{ tarsnap_version }} creates=/usr/local/bin/tarsnap
71
 
71
 
72
 - name: Copy Tarsnap key file into place
72
 - name: Copy Tarsnap key file into place
73
-  copy: src=decrypted_tarsnap.key dest=/decrypted/tarsnap.key owner=root group=root mode="600" force=no
73
+  copy: src=decrypted_tarsnap.key dest=/decrypted/tarsnap.key owner=root group=root mode="0600" force=no
74
 
74
 
75
 - name: Create Tarsnap cache directory
75
 - name: Create Tarsnap cache directory
76
   file: state=directory path=/usr/tarsnap-cache
76
   file: state=directory path=/usr/tarsnap-cache
77
 
77
 
78
 - name: Install Tarsnap configuration file
78
 - name: Install Tarsnap configuration file
79
-  copy: src=tarsnaprc dest=/root/.tarsnaprc mode="644"
79
+  copy: src=tarsnaprc dest=/root/.tarsnaprc mode="0644"
80
 
80
 
81
 - name: Install Tarsnap backup handler script
81
 - name: Install Tarsnap backup handler script
82
-  copy: src=tarsnap.sh dest=/root/tarsnap.sh mode="755"
82
+  copy: src=tarsnap.sh dest=/root/tarsnap.sh mode="0755"
83
 
83
 
84
 - name: Install nightly Tarsnap-generations cronjob
84
 - name: Install nightly Tarsnap-generations cronjob
85
   cron: name="Tarsnap backup" hour="3" minute="0" job="sh /root/tarsnap.sh >> /var/log/tarsnap.log"
85
   cron: name="Tarsnap backup" hour="3" minute="0" job="sh /root/tarsnap.sh >> /var/log/tarsnap.log"

Loading…
Cancel
Save