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
[privilege_escalation]
become = true
# Normally, true, false to make it easier as non-admin user.
become = false
become_user = root
[ssh_connection]

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -8,6 +8,7 @@
msg: 'Your Ansible version is lower than 2.8. Upgrade it.'
- name: Configure build nodes
become: true
hosts:
- testing-large-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 }
- name: Configure network pyrmont
become: true
hosts:
- nimbus-pyrmont-stable
- nimbus-pyrmont-testing

View File

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