https://github.com/openstack/ansible-role-systemd_mount
Ansible role to manage systemd mount points. Mirror of code maintained at opendev.org.
https://github.com/openstack/ansible-role-systemd_mount
Last synced: about 1 year ago
JSON representation
Ansible role to manage systemd mount points. Mirror of code maintained at opendev.org.
- Host: GitHub
- URL: https://github.com/openstack/ansible-role-systemd_mount
- Owner: openstack
- License: apache-2.0
- Created: 2018-03-19T18:50:32.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-06-06T11:17:09.000Z (about 2 years ago)
- Last Synced: 2024-06-06T12:42:18.207Z (about 2 years ago)
- Language: Python
- Homepage: https://opendev.org/openstack/ansible-role-systemd_mount
- Size: 134 KB
- Stars: 8
- Watchers: 7
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
README
#### 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.
``` bash
# 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.
``` yaml
- 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
```