Skip to content

Commit

Permalink
Merge branch 'myrdd-feature/make-sudo-optional'
Browse files Browse the repository at this point in the history
  • Loading branch information
drybjed committed Nov 15, 2018
2 parents f92100b + 48bdeb4 commit f8d7922
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
8 changes: 6 additions & 2 deletions ansible/roles/debops.gitlab_runner/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@
owner: 'root'
group: 'root'
mode: '0440'
when: gitlab_runner__vagrant_libvirt|bool
when: (ansible_local|d() and ansible_local.sudo|d() and
(ansible_local.sudo.installed|d()|bool)) and
(gitlab_runner__vagrant_libvirt|bool))

- name: Find 'vagrant-libvirt' source code
command: find /usr/share/rubygems-integration/all/gems -maxdepth 1 -type d -name 'vagrant-libvirt-*'
Expand All @@ -233,7 +235,9 @@
owner: 'root'
group: 'root'
mode: '0440'
when: gitlab_runner__vagrant_lxc|bool
when: (ansible_local|d() and ansible_local.sudo|d() and
(ansible_local.sudo.installed|d()|bool) and
gitlab_runner__vagrant_lxc|bool)

- name: Make sure that Ansible fact directory exists
file:
Expand Down
4 changes: 3 additions & 1 deletion ansible/roles/debops.nginx/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@
owner: 'root'
group: 'root'
mode: '0440'
when: (nginx__deploy_state in [ 'present' ])
when: (ansible_local|d() and ansible_local.sudo|d() and
(ansible_local.sudo.installed|d()|bool) and
(nginx__deploy_state in [ 'present' ]))

- name: Divert original /etc/nginx/nginx.conf
command: dpkg-divert --quiet --local --divert /etc/nginx/nginx.conf.dpkg-divert
Expand Down
2 changes: 2 additions & 0 deletions ansible/roles/debops.php/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
owner: 'root'
group: 'root'
mode: '0440'
when: (ansible_local|d() and ansible_local.sudo|d() and
(ansible_local.sudo.installed|d()|bool))

# ]]]
# php.ini management [[[
Expand Down
2 changes: 2 additions & 0 deletions ansible/roles/debops.smstools/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@
- name: Configure access to sendsms via sudo
template: src=etc/sudoers.d/smstools.j2 dest=/etc/sudoers.d/smstools
owner=root group=root mode=0440
when: (ansible_local|d() and ansible_local.sudo|d() and
(ansible_local.sudo.installed|d()|bool))

- name: Configure xinetd SMS service
template: src=etc/xinetd.d/sms.j2 dest=/etc/xinetd.d/sms
Expand Down

0 comments on commit f8d7922

Please sign in to comment.