~woutervb/charms/trusty/conn-check/update_charmhelpers

« back to all changes in this revision

Viewing changes to playbook.yaml

  • Committer: Wes Mason
  • Author(s): Simon Davy
  • Date: 2015-10-01 14:57:08 UTC
  • mfrom: (46.2.1 conn-check)
  • Revision ID: wesley.mason@canonical.com-20151001145708-j5lbn32hisp44i45
[r=wesmason] Ensure nagios group can always read the config file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
        dest: "{{ config_path }}"
79
79
        owner: "{{ user }}"
80
80
        group: "{{ group }}"
81
 
        mode: 0600
 
81
        mode: 0640
82
82
      when: not (path_provided | bool) and (config_provided | bool)
83
83
 
 
84
    - name: ensure group can read the config when config_path provided
 
85
      tags:
 
86
        - config-changed
 
87
        - conn-check-relation-changed
 
88
      file: path={{ config_path }} mode=0640 group={{ group }}
 
89
      when: (path_provided | bool) and not (config_provided | bool)
 
90
 
84
91
    # We only need user/group for the run-check action, as the Nagios user executes checks above
85
92
    - name: create group
86
93
      tags: