set become=false in ansible.cfg, set it to true in playbooks

See: https://github.com/status-im/nimbus-private/pull/9

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-02-09 20:27:13 +01:00
parent 0e82fa7c03
commit a5a950bb91
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
8 changed files with 12 additions and 1 deletions

View File

@ -13,7 +13,8 @@ interpreter_python = auto
force_valid_group_names = ignore force_valid_group_names = ignore
[privilege_escalation] [privilege_escalation]
become = true # Normally, true, false to make it easier as non-admin user.
become = false
become_user = root become_user = root
[ssh_connection] [ssh_connection]

View File

@ -10,12 +10,14 @@
# This is run on every newly provisioned host. # This is run on every newly provisioned host.
# #
- name: Bootstrap Python support for Ansible - name: Bootstrap Python support for Ansible
become: true
gather_facts: False gather_facts: False
hosts: all hosts: all
roles: roles:
- infra-role-bootstrap/raw - infra-role-bootstrap/raw
- name: Bootstrap admin users and Consul - name: Bootstrap admin users and Consul
become: true
hosts: all hosts: all
roles: roles:
- infra-role-bootstrap - infra-role-bootstrap

View File

@ -1,4 +1,5 @@
- name: Cleanup to regain disk space - name: Cleanup to regain disk space
become: true
hosts: all hosts: all
tasks: tasks:
- name: Save available space - name: Save available space

View File

@ -8,6 +8,7 @@
msg: 'Your Ansible version is lower than 2.8. Upgrade it.' msg: 'Your Ansible version is lower than 2.8. Upgrade it.'
- name: Configure geth nodes - name: Configure geth nodes
become: true
hosts: hosts:
- nimbus-geth-goerli - nimbus-geth-goerli
- nimbus-geth-mainnet - nimbus-geth-mainnet

View File

@ -1,5 +1,6 @@
--- ---
- name: Configure ElasticSearch servers - name: Configure ElasticSearch servers
become: true
hosts: log-store hosts: log-store
roles: roles:
- role: swap-file - role: swap-file
@ -18,6 +19,7 @@
tags: open-ports tags: open-ports
- name: Configure ElasticSearch servers - name: Configure ElasticSearch servers
become: true
hosts: log-dash hosts: log-dash
pre_tasks: pre_tasks:
- name: Fetch available elasticsearch nodes - name: Fetch available elasticsearch nodes

View File

@ -8,6 +8,7 @@
msg: 'Your Ansible version is lower than 2.8. Upgrade it.' msg: 'Your Ansible version is lower than 2.8. Upgrade it.'
- name: Configure network mainnet bootnodes - name: Configure network mainnet bootnodes
become: true
hosts: hosts:
- nimbus-mainnet-small - nimbus-mainnet-small
roles: roles:

View File

@ -8,6 +8,7 @@
msg: 'Your Ansible version is lower than 2.8. Upgrade it.' msg: 'Your Ansible version is lower than 2.8. Upgrade it.'
- name: Configure build nodes - name: Configure build nodes
become: true
hosts: hosts:
- testing-large-01.aws-eu-central-1a.nimbus.pyrmont - testing-large-01.aws-eu-central-1a.nimbus.pyrmont
- testing-small-01.aws-eu-central-1a.nimbus.pyrmont - testing-small-01.aws-eu-central-1a.nimbus.pyrmont
@ -15,6 +16,7 @@
- { role: beacon-node-builds, tags: beacon-node-builds } - { role: beacon-node-builds, tags: beacon-node-builds }
- name: Configure network pyrmont - name: Configure network pyrmont
become: true
hosts: hosts:
- nimbus-pyrmont-stable - nimbus-pyrmont-stable
- nimbus-pyrmont-testing - nimbus-pyrmont-testing

View File

@ -1,4 +1,5 @@
- name: Update and upgrade apt packages - name: Update and upgrade apt packages
become: true
gather_facts: false gather_facts: false
hosts: all hosts: all
tasks: tasks: