Download:
child 289:88630bb968cb
parent 287:3c70a6d50984
288:845780bce8cd
Anton Shestakov <av6@dwimlabs.net>, Sat, 16 Sep 2017 22:40:16 +0800
provision: use become instead of sudo

3 файлов изменено, 5 вставок(+), 5 удалений(-) [+]
contrib/provision/playbook.yml file | annotate | diff | comparison | revisions
contrib/provision/roles/prosody/tasks/main.yml file | annotate | diff | comparison | revisions
contrib/provision/roles/tram-im/tasks/main.yml file | annotate | diff | comparison | revisions
--- a/contrib/provision/playbook.yml Sat Sep 16 23:17:19 2017 +0800
+++ b/contrib/provision/playbook.yml Sat Sep 16 22:40:16 2017 +0800
@@ -1,6 +1,6 @@
---
- hosts: all
- sudo: yes
+ become: yes
vars:
domain: tram-im
pre_tasks:
--- a/contrib/provision/roles/prosody/tasks/main.yml Sat Sep 16 23:17:19 2017 +0800
+++ b/contrib/provision/roles/prosody/tasks/main.yml Sat Sep 16 22:40:16 2017 +0800
@@ -11,8 +11,8 @@
tags: [packages]
- include: extra-modules.yml
- sudo: yes
- sudo_user: prosody
+ become: yes
+ become_user: prosody
- name: Work around default config bug
file:
--- a/contrib/provision/roles/tram-im/tasks/main.yml Sat Sep 16 23:17:19 2017 +0800
+++ b/contrib/provision/roles/tram-im/tasks/main.yml Sat Sep 16 22:40:16 2017 +0800
@@ -32,8 +32,8 @@
name: '{{ user }}'
- include: appinstall.yml
- sudo: yes
- sudo_user: '{{ user }}'
+ become: yes
+ become_user: '{{ user }}'
- name: Add Prosody VirtualHost
template: