Download:
child 108:f24c7fee1b0d
parent 106:807d12ac771c
107:7dee6d151401
Anton Shestakov <av6@dwimlabs.net>, Thu, 21 Jul 2016 17:12:40 +0800
provision: use become instead of sudo

2 файлов изменено, 3 вставок(+), 3 удалений(-) [+]
provision/playbook.yml file | annotate | diff | comparison | revisions
provision/roles/fruitbar/tasks/main.yml file | annotate | diff | comparison | revisions
--- a/provision/playbook.yml Thu Jul 21 17:12:00 2016 +0800
+++ b/provision/playbook.yml Thu Jul 21 17:12:40 2016 +0800
@@ -1,6 +1,6 @@
---
- hosts: all
- sudo: yes
+ become: yes
vars:
umbrella: localhost
pre_tasks:
--- a/provision/roles/fruitbar/tasks/main.yml Thu Jul 21 17:12:00 2016 +0800
+++ b/provision/roles/fruitbar/tasks/main.yml Thu Jul 21 17:12:40 2016 +0800
@@ -15,8 +15,8 @@
when: ansible_distribution_release == 'jessie'
- include: appinstall.yml
- sudo: yes
- sudo_user: '{{ user }}'
+ become: yes
+ become_user: '{{ user }}'
- name: Add supervisor app
template: src=etc/supervisor/conf.d/fruitbar.conf dest=/etc/supervisor/conf.d/fruitbar.conf