OPS-1593 As an operator, I want sudo_user converted to become user in roles and…

OPS-1593 As an operator, I want sudo_user converted to become user in roles and plays, for compatibility with Ansible 2.x
parent 16eeda55
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
- name: Configure instance(s) - name: Configure instance(s)
hosts: all hosts: all
sudo: True become: True
roles: roles:
- jenkins_analytics - jenkins_analytics
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
- name: Configure instance(s) - name: Configure instance(s)
hosts: all hosts: all
sudo: True become: True
gather_facts: True gather_facts: True
vars: vars:
migrate_db: "yes" migrate_db: "yes"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- name: Install go-agent-docker-server - name: Install go-agent-docker-server
hosts: all hosts: all
sudo: True become: True
gather_facts: True gather_facts: True
roles: roles:
- aws - aws
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- name: Install go-agent - name: Install go-agent
hosts: all hosts: all
sudo: True become: True
gather_facts: True gather_facts: True
roles: roles:
- aws - aws
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
- name: Install go-server - name: Install go-server
hosts: all hosts: all
sudo: True become: True
gather_facts: True gather_facts: True
roles: roles:
- aws - aws
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# analyzing logs. # analyzing logs.
- name: Configure syslog server - name: Configure syslog server
hosts: all hosts: all
sudo: yes become: True
roles: roles:
- common - common
- oraclejdk - oraclejdk
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# ansible-playbook ./run_role.yml -i "hostname," -e role=my_awesome_role # ansible-playbook ./run_role.yml -i "hostname," -e role=my_awesome_role
# #
- hosts: all - hosts: all
sudo: True become: True
gather_facts: True gather_facts: True
roles: roles:
- "{{role}}" - "{{role}}"
- name: Apply security role - name: Apply security role
hosts: all hosts: all
sudo: yes become: True
roles: roles:
- security - security
- name: Configure instance(s) - name: Configure instance(s)
hosts: all hosts: all
sudo: True become: True
gather_facts: True gather_facts: True
vars: vars:
migrate_db: 'yes' migrate_db: 'yes'
......
- name: Configure group cluster - name: Configure group cluster
hosts: all hosts: all
sudo: True become: True
gather_facts: True gather_facts: True
vars: vars:
vagrant_cluster: yes vagrant_cluster: yes
......
- name: Configure instance(s) - name: Configure instance(s)
hosts: all hosts: all
sudo: True become: True
gather_facts: True gather_facts: True
vars: vars:
migrate_db: 'yes' migrate_db: 'yes'
......
- name: Configure instance(s) - name: Configure instance(s)
hosts: all hosts: all
sudo: True become: True
gather_facts: True gather_facts: True
vars: vars:
migrate_db: 'yes' migrate_db: 'yes'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment