Dmitriy Rabotyagov cb8418715a Installing systemd-udev with NVR
Due to the bug [1] in CentOS packaging, systemd-udev is substituted with
systemd-boot-unsigned. So you need to use NVR to properly
install systemd-udev until the bug is fixed.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=2183279

Change-Id: I3c112b74b4777b9443f3c3041a51ecb770d48021
2023-07-18 10:19:21 +02:00
2022-05-30 16:01:09 +02:00
2022-01-24 17:30:29 +00:00
2018-03-13 02:06:48 -05:00
2018-03-13 02:06:48 -05:00
2022-01-11 16:56:06 +02:00
2022-12-13 13:05:15 +00:00
2023-07-18 10:19:21 +02:00
2022-01-24 17:30:29 +00:00
2019-04-19 19:34:04 +00:00
2018-03-13 02:06:48 -05:00
2022-12-27 17:53:06 +01:00

Ansible systemd_mount

This Ansible role configures systemd mount files.

This role requires the ansible-config_template collection to be available on your local system.

To get collection you can use use the ansible-galaxy command on the requirements.yml file.. You need to install collection before running this role.

# ansible-galaxy install -r requirements.yml

Release notes for the project can be found at: https://docs.openstack.org/releasenotes/ansible-role-systemd_mount


Example playbook

See the "defaults.yml" file for a full list of all available options.

- name: Create a systemd mount file for Mount1 and 2
  hosts: localhost
  become: true
  roles:
    - role: "systemd_mount"
      systemd_mounts:
        - what: '/var/lib/machines.raw'
          where: '/var/lib/machines'
          type: 'btrfs'
          options: 'loop'
          unit:
            ConditionPathExists:
              - '/var/lib/machines.raw'
          state: 'started'
          enabled: true
        - config_overrides: {}
          what: "10.1.10.1:/srv/nfs"
          where: "/var/lib/glance/images"
          type: "nfs"
          options: "_netdev,auto"
          unit:
            After:
              - network.target
Description
Ansible role to manage systemd mount points
Readme 1.1 MiB
Languages
Python 91.2%
Jinja 8.8%