ten7.flightdeck_base
Ansible Role: Flight Deck Base
This role installs basic utilities and sets up common configurations for the Flight Deck container set.
Requirements
- No requirements.
Role Variables
Here are the available variables, along with their default values (see defaults/main.yml
).
Creating Groups
flightdeck_groups
This variable specifies which groups to create.
flightdeck_groups:
- name: "flightdeck"
- name: "green"
gid: 999
- name: "purple"
system: true
Creating Users
flightdeck_users
This variable specifies which users to create. The format is similar to socketwench.users-and-groups.
Groups must be created first using flightdeck_groups
.
flightdeck_users:
- name: "flightdeck"
group: "flightdeck"
home: "/home/flightdeck"
Customizing the Prompt
flightdeck_root_prompt
and flightdeck_user_prompt
These allow you to change the default command line prompt for the root user and for all other users.
Installing Packages
flightdeck_base_packages
This variable specifies a list of packages to install on Alpine Linux. If it's not provided, bash
will be installed by default.
Customizing the Entrypoint
flightdeck_run_commands
By default, this role creates an entrypoint script, /usr/local/bin/docker-entrypoint.sh
, for Docker. You can add more commands by using this variable:
flightdeck_run_commands: |
ansible-playbook -i /ansible/inventories/all.ini /ansible/run.yml
Dependencies
No dependencies.
Example Playbook
To use the role, add it to a playbook that runs during docker build
.
- hosts: docker
roles:
- role: ten7.flightdeck_base
License
This role is licensed under GPL v3.
Author Information
This role was created by TEN7.
ansible-galaxy install ten7.flightdeck_base