Skip to content

A collection of Ansible roles to manage systemd configurations.

License

Notifications You must be signed in to change notification settings

bodsch/ansible-collection-systemd

Repository files navigation

Ansible Collection - bodsch.systemd

Documentation for the collection.

Roles

Role Description
bodsch.systemd.coredump GitHub Workflow Status configure systemd-coredump
bodsch.systemd.homed GitHub Workflow Status configure systemd-homed
bodsch.systemd.journald GitHub Workflow Status configure systemd-journald
bodsch.systemd.oomd GitHub Workflow Status configure systemd-oomd
bodsch.systemd.logind GitHub Workflow Status configure systemd-logind
bodsch.systemd.networkd GitHub Workflow Status configure systemd-networkd
bodsch.systemd.resolved GitHub Workflow Status configure systemd-resolved
bodsch.systemd.system GitHub Workflow Status configure systemd-system
bodsch.systemd.timesyncd GitHub Workflow Status configure systemd-timesyncd
bodsch.systemd.user GitHub Workflow Status configure systemd-user

Included content

Modules

Name Description
journalctl Query the systemd journal with a very limited number of possible parameters
unit_file This can be used to create a systemd unit file. The service, timer and socket types are supported.

Installing this collection

You can install the memsource collection with the Ansible Galaxy CLI:

#> ansible-galaxy collection install bodsch.systemd

To install directly from GitHub:

#> ansible-galaxy collection install [email protected]:bodsch/ansible-collection-systemd.git

You can also include it in a requirements.yml file and install it with ansible-galaxy collection install -r requirements.yml, using the format:

---
collections:
  - name: bodsch.systemd

The python module dependencies are not installed by ansible-galaxy. They can be manually installed using pip:

#> pip install -r requirements.txt

Using this collection

You can either call modules by their Fully Qualified Collection Name (FQCN), such as bodsch.systemd.remove_ansible_backups, or you can call modules by their short name if you list the bodsch.systemd collection in the playbook's collections keyword:

---
- name: remove older ansible backup files
  bodsch.systemd.remove_ansible_backups:
    path: /etc
    holds: 4

Contribution

Please read Contribution

Development, Branches (Git Tags)

The master Branch is my Working Horse includes the "latest, hot shit" and can be complete broken!

If you want to use something stable, please use a Tagged Version!

Author

  • Bodo Schulz

License

Apache

FREE SOFTWARE, HELL YEAH!