Install Python on newly bootstrapped CentOS/RedHat host
This Ansible role will install Python on newly bootstrapped host. This is usually a new host which you never even SSH-ed to. In order for Ansible to work, Python must be installed (if missing).
This role was created as part of containerized-wordpress-project
None.
Unless you don't want gather_facts: yes
to be set and enabled as second part of the playbook.
Make sure to comment/delete following line from tasks/main.yml
- setup: # aka gather_facts: yes
None.
Example Playbook
# run as part of pre_tasks
- hosts: servers
remote_user: centos
become: yes
gather_facts: no
serial: 1
roles:
- { role: centos-python-bootstrap }
- hosts: servers
remote_user: centos
become: yes
# run as part of tasks
roles:
...
GPLv3