robertdebock.apt_autostart

Ansible Role Apt Autostart

This role allows you to enable or disable the automatic starting of services when installing packages.

GitHub GitLab Downloads Version
github gitlab downloads Version

Example Playbook

Here’s a simple example of how to use this role. This example is from the file molecule/default/converge.yml. It is tested whenever changes are made.

---
- name: Converge
  hosts: all
  become: true
  gather_facts: true

  roles:
    - role: robertdebock.apt_autostart

Before you run this, prepare the machine using the file molecule/default/prepare.yml:

---
- name: Prepare
  hosts: all
  gather_facts: false
  become: true

  roles:
    - role: robertdebock.bootstrap

You can find more detailed explanations and examples here.

Role Variables

Default values for the role variables are defined in defaults/main.yml:

---
# defaults file for apt_autostart

# Should services automatically start when using apt to install software?
apt_autostart_state: disabled

Requirements

State of Used Roles

The following roles are needed to prepare the system. You can use other methods to prepare.

Requirement GitHub GitLab
robertdebock.bootstrap Build Status GitHub Build Status GitLab

Context

This role is part of a set of related roles. You can find more information in the documentation of these roles.

Here’s a graphic showing related roles: dependencies

Compatibility

This role has been tested with the following container images:

Container Tags
Debian All
Ubuntu All

You need at least Ansible version 2.12. Testing has also been done on the previous, current, and development versions.

If you encounter any issues, please report them on GitHub.

License

This role is licensed under the Apache-2.0 license.

Author Information

Created by robertdebock.

If you would like to support my work, please consider sponsoring me.

Informazioni sul progetto

Enable or disable automatic starting of services upon installation of packages.

Installa
ansible-galaxy install robertdebock.apt_autostart
Licenza
apache-2.0
Download
141.8k
Proprietario
I know my way around (Linux) infrastructure, have a passion for automation, Docker, Ansible, Molecule and ci/cd.