From f782c4ff043eb2ed6dee4d23b97cdbf0e3ee9701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Thu, 16 Apr 2020 11:26:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95gold3=20sudo=20true=20?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/ansible.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/deploy/ansible.yml b/deploy/ansible.yml index d3a993680..1a0048b4c 100644 --- a/deploy/ansible.yml +++ b/deploy/ansible.yml @@ -1,6 +1,7 @@ --- - hosts: "{{ deploy_hosts }}" remote_user: ubuntu + sudo: True tasks: - name: copy shell copy: @@ -8,7 +9,6 @@ dest: "{{ deploy_dir }}/cleanup.sh" owner: ubuntu group: ubuntu - sudo: True mode: 0777 # - name: cleanup previous backup files # shell: cd {{ deploy_dir }} && ./cleanup.sh @@ -19,7 +19,6 @@ owner: ubuntu group: ubuntu mode: 0755 - sudo: True backup: no - name: copy conf file to dest copy: @@ -27,7 +26,6 @@ dest: "{{ deploy_dir }}/conf/" owner: ubuntu group: ubuntu - sudo: True mode: 0555 - name: copy swagger files to dest copy: @@ -35,7 +33,6 @@ dest: "{{ deploy_dir }}/" owner: ubuntu group: ubuntu - sudo: True mode: 0555 - name: shell