Bootstrap a system (many distributions) to be managed by Ansible, likely the first role to depend on. This role does not depend on other roles, but many others may depend on this role.
This role installs required software to be able to run all ansible packaged modules.
A benefit is that this role prepares nearly any (Linux) system, including: - Alpine - ArchLinux - Busybox - CentOS - Debian - Fedora - Gentoo - Red Hat - OpenSUSE - Ubuntu
This role is a part of many compatible roles. Have a look at the documentation of these roles for further information.
Here is an overview of related roles:
None known. This is likely the role that comes first when using Ansible, many other roles can depend on this role.
This role has been tested against the following distributions and Ansible version:
distribution | ansible 2.4 | ansible 2.5 | ansible 2.6 |
---|---|---|---|
alpine-edge | yes | yes | yes |
alpine-latest | yes | yes | yes |
archlinux | yes | yes | yes |
centos-6 | yes | yes | yes |
centos-latest | yes | yes | yes |
debian-latest | yes | yes | yes |
debian-stable | yes | yes | yes |
fedora-latest | yes | yes | yes |
fedora-rawhide | yes | yes | yes |
opensuse-leap | yes | yes | yes |
opensuse-tumbleweed | yes | yes | yes |
ubuntu-artful | yes | yes | yes |
ubuntu-latest | yes | yes | yes |
--- - name: bootstrap hosts: all gather_facts: no become: yes roles: - role: robertdebock.bootstrap bootstrap_user: vagrant tasks: - name: test connection ping:
To install this role:
- Install this role individually using ansible-galaxy install robertdebock.bootstrap
- Use another role that depends on this one and run ansible-galaxy install --role-file requirements.yml
:
--- - name: robertdebock.bootstrap src: robertdebock.bootstrap
Non-standard options: - "gather_facts" is set to "no", because machines may not have all required software installed to be able to use common Ansible mechanisms. This role does run "setup" when python once installed, providing all facts, when the required software is installed. - "become" is set to "yes". The first part of the playbook logs in as "remoteuser" (set in defaults/main.yml) and installs required software. After that, the user specified in your inventory or ansible.cfg is used.
Apache License, Version 2.0