From 85d5031a04472c7d33715d0280e170bd62be59b4 Mon Sep 17 00:00:00 2001 From: Tomofumi Hayashi Date: Thu, 20 Oct 2016 14:31:09 +0900 Subject: [PATCH] Refine 'become: yes' statement. In jenkins_ssh.yml, there is several 'become:' statement and one 'become_user:' misses 'become: yes' and other has redundant one. This change fixes it. --- jenkins_ssh.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins_ssh.yml b/jenkins_ssh.yml index 308bf48..ab11b22 100644 --- a/jenkins_ssh.yml +++ b/jenkins_ssh.yml @@ -52,6 +52,7 @@ - skip_ansible_lint - name: Add localhost SSH fingerprint to known_hosts + become: yes become_user: jenkins known_hosts: name: 127.0.0.1 @@ -102,7 +103,6 @@ - "{{ stack_slave_pub.stdout }}" - name: Add stack public key to local root user - become: yes authorized_key: user: root key: "{{ stack_slave_pub.stdout }}"