ansible: Replace sudo by become
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 18 Jan 2017 20:28:25 +0000 (15:28 -0500)
committerMichael Jeanson <mjeanson@efficios.com>
Wed, 18 Jan 2017 20:28:25 +0000 (15:28 -0500)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
automation/ansible/playbooks/dist-upgrade.yml
automation/ansible/roles/lttng-modules/tasks/main.yml
automation/ansible/roles/tracecompass/tasks/main.yml

index 13cce7373ec2262cabffaabdd6791b00d7da4f41..db9038069480e3f694cac1159aa7b09da9ac5491 100644 (file)
@@ -18,7 +18,7 @@
    - name: apt-get dist-upgrade
      apt: upgrade=dist
 
-   - name: apt-get autoremove 
+   - name: apt-get autoremove
      command: apt-get -y --purge autoremove
      register: autoremove_output
      changed_when: "'The following packages will be REMOVED' in autoremove_output.stdout"
@@ -30,7 +30,7 @@
      ignore_errors: true
      when: reboot == "yes"
      register: last_result
+
    - name: wait for the server to reboot
      local_action: wait_for host={{ inventory_hostname }}
                    port=22
@@ -38,4 +38,4 @@
                    timeout=300
                    state=started
      when: last_result.changed
-     sudo: false
+     become: false
index e7eb36f7dae383651d3790786367aee6884585ae..b832a5e6cfd5a6a0eab6f6a00db3814f1b0a4136 100644 (file)
@@ -22,5 +22,5 @@
   git: repo=git://artifacts.internal.efficios.com/git/linux-stable.git
        dest=/home/jenkins/gitcache/linux-stable.git
        bare=yes
-  sudo: yes
-  sudo_user: jenkins
+  become: yes
+  become_user: jenkins
index cae4e99079a8af18641d81577bd1cd61bccfae98..1c5a686629b06854650b9c205f2a29c5b5ea4dcc 100644 (file)
@@ -19,5 +19,5 @@
   git: repo=git://artifacts.internal.efficios.com/git/org.eclipse.tracecompass.git
        dest=/home/jenkins/gitcache/org.eclipse.tracecompass.git
        bare=yes
-  sudo: yes
-  sudo_user: jenkins
+  become: yes
+  become_user: jenkins
This page took 0.024311 seconds and 4 git commands to generate.