robertdebock.bootstrap
Ansible Role Bootstrap
Prepare your system to be managed by Ansible.
GitHub | GitLab | Downloads | Version |
---|---|---|---|
Example Playbook
This example is from molecule/default/converge.yml
and is tested whenever there is a push, pull request, or release.
---
- name: Converge
hosts: all
# This role installs packages using the `raw` module and connects as
# `root`. (`sudo` is not available before bootstrapping.) All tasks in the
# role have `become` set to `false`, so you can use either `false` or `true`
# for `become`, and the role will not use `sudo` for any task.
become: true # `false` will also work.
# This role installs python; facts can't be gathered before `python` is
# installed. This role runs the `setup` module, so facts will be available
# after the role runs.
gather_facts: false
roles:
- role: robertdebock.bootstrap
Also see a full explanation and example on how to use these roles.
Role Variables
The default variable values are set in defaults/main.yml
:
---
# defaults file for bootstrap
# Do you want to wait for the host to be available?
bootstrap_wait_for_host: false
# The number of seconds to wait during connection tests before failing.
bootstrap_timeout: 3
# Tell the role to "become" or not.
bootstrap_become: true
Requirements
- pip packages listed in requirements.txt.
Context
This role is part of many compatible roles. Check out the documentation of these roles for more information.
Here is an overview of related roles:
Compatibility
This role has been tested on these container images:
Container | Tags |
---|---|
Alpine | all |
Amazon | Candidate |
EL | 9 |
Debian | all |
Fedora | all |
Ubuntu | all |
The minimum version of Ansible required is 2.12. Tests have been done on:
- The previous version.
- The current version.
- The development version.
If you find any issues, please report them on GitHub.
License
Author Information
Please consider sponsoring me.
Informazioni sul progetto
Prepare your system to be managed by Ansible.
Installa
ansible-galaxy install robertdebock.bootstrap
Licenza
apache-2.0
Download
4.5M
Proprietario
I know my way around (Linux) infrastructure, have a passion for automation, Docker, Ansible, Molecule and ci/cd.