Ansible role to manage systemd mount points
Go to file
Dmitriy Rabotyagov 3448df38f5 Fix linters and metadata
With update of ansible-lint to version >=6.0.0 a lot of new
linters were added, that enabled by default. In order to comply
with linter rules we're applying changes to the role.

With that we also update metdata to reflect current state.

Change-Id: I8bd832c172ef87acca27f053c5223941d80f9ce1
2023-07-12 12:29:45 +02:00
defaults Fix linters and metadata 2023-07-12 12:29:45 +02:00
doc Switch sphinx language to en 2022-05-30 16:01:09 +02:00
examples Add integrated linters test 2022-01-24 17:30:29 +00:00
handlers Initial Commit 2018-03-13 02:06:48 -05:00
html-docs Initial Commit 2018-03-13 02:06:48 -05:00
meta Fix linters and metadata 2023-07-12 12:29:45 +02:00
releasenotes Update master for stable/zed 2022-12-13 13:05:15 +00:00
tasks Fix linters and metadata 2023-07-12 12:29:45 +02:00
templates Fix mount's systemd unit dependency logic 2022-12-28 09:46:48 +00:00
tests Remove references to unsupported operating systems 2021-03-16 08:57:25 +00:00
vars Ensure systemd-udev is installed for gluster 2023-03-29 16:28:07 +00:00
zuul.d Add integrated linters test 2022-01-24 17:30:29 +00:00
.gitignore Updated from OpenStack Ansible Tests 2019-08-20 03:07:45 +00:00
.gitreview OpenDev Migration Patch 2019-04-19 19:34:04 +00:00
bindep.txt Updated from OpenStack Ansible Tests 2021-03-12 22:23:34 +00:00
CONTRIBUTING.rst [ussuri][goal] Update contributor documentation 2020-05-13 00:07:02 +03:00
LICENSE Initial Commit 2018-03-13 02:06:48 -05:00
manual-test.rc Update documentation on role requirements 2022-05-13 10:54:27 +02:00
README.md Update documentation on role requirements 2022-05-13 10:54:27 +02:00
requirements.yml Update documentation on role requirements 2022-05-13 10:54:27 +02:00
run_tests.sh Updated from OpenStack Ansible Tests 2022-03-31 20:15:33 +00:00
tox.ini Update tox.ini to work with 4.0 2022-12-27 17:53:06 +01:00
Vagrantfile Updated from OpenStack Ansible Tests 2021-12-17 16:50:30 +00: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