Merge "Update documentation on role requirements"
This commit is contained in:
commit
da14428068
17
README.md
17
README.md
@ -2,20 +2,17 @@
|
|||||||
|
|
||||||
This Ansible role configures systemd mount files.
|
This Ansible role configures systemd mount files.
|
||||||
|
|
||||||
This role requires the ``openstack-ansible-plugins`` repository to be available
|
This role requires the ``ansible-config_template`` collection to be available
|
||||||
on your local system. The Ansible galaxy resolver will not retrieve this role
|
on your local system.
|
||||||
for you. To get the plugins role in place clone the plugins repository
|
|
||||||
**before** running this role.
|
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
|
``` bash
|
||||||
# git clone https://github.com/openstack/openstack-ansible-plugins /etc/ansible/roles/plugins
|
# ansible-galaxy install -r requirements.yml
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also use the ``ansible-galaxy`` command on the ``ansible-role-requirements.yml`` file.
|
|
||||||
|
|
||||||
``` bash
|
|
||||||
# ansible-galaxy install -r ansible-role-requirements.yml
|
|
||||||
```
|
|
||||||
Release notes for the project can be found at:
|
Release notes for the project can be found at:
|
||||||
https://docs.openstack.org/releasenotes/ansible-role-systemd_mount
|
https://docs.openstack.org/releasenotes/ansible-role-systemd_mount
|
||||||
|
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
- name: "plugins"
|
|
||||||
src: "https://opendev.org/openstack/openstack-ansible-plugins"
|
|
||||||
scm: git
|
|
||||||
version: "master"
|
|
@ -2,21 +2,11 @@ export VIRTUAL_ENV=$(pwd)
|
|||||||
export ANSIBLE_HOST_KEY_CHECKING=False
|
export ANSIBLE_HOST_KEY_CHECKING=False
|
||||||
export ANSIBLE_SSH_CONTROL_PATH=/tmp/%%h-%%r
|
export ANSIBLE_SSH_CONTROL_PATH=/tmp/%%h-%%r
|
||||||
|
|
||||||
# TODO (odyssey4me) These are only here as they are non-standard folder
|
|
||||||
# names for Ansible 1.9.x. We are using the standard folder names for
|
|
||||||
# Ansible v2.x. We can remove this when we move to Ansible 2.x.
|
|
||||||
export ANSIBLE_ACTION_PLUGINS=${HOME}/.ansible/plugins/action
|
|
||||||
export ANSIBLE_CALLBACK_PLUGINS=${HOME}/.ansible/plugins/callback
|
|
||||||
export ANSIBLE_FILTER_PLUGINS=${HOME}/.ansible/plugins/filter
|
|
||||||
export ANSIBLE_LOOKUP_PLUGINS=${HOME}/.ansible/plugins/lookup
|
|
||||||
|
|
||||||
# This is required as the default is the current path or a path specified
|
|
||||||
# in ansible.cfg
|
|
||||||
export ANSIBLE_LIBRARY=${HOME}/.ansible/plugins/library
|
|
||||||
|
|
||||||
# This is required as the default is '/etc/ansible/roles' or a path
|
# This is required as the default is '/etc/ansible/roles' or a path
|
||||||
# specified in ansible.cfg
|
# specified in ansible.cfg
|
||||||
export ANSIBLE_ROLES_PATH=${HOME}/.ansible/roles:$(pwd)/..
|
export ANSIBLE_ROLES_PATH=${HOME}/.ansible/roles:$(pwd)/..
|
||||||
|
export ANSIBLE_COLLECTIONS_PATHS="${HOME}/.ansible:$(pwd)/.."
|
||||||
|
export ANSIBLE_COLLECTIONS_PATH="${HOME}/.ansible:$(pwd)/.."
|
||||||
|
|
||||||
export ANSIBLE_SSH_ARGS="-o ControlMaster=no \
|
export ANSIBLE_SSH_ARGS="-o ControlMaster=no \
|
||||||
-o UserKnownHostsFile=/dev/null \
|
-o UserKnownHostsFile=/dev/null \
|
||||||
|
5
requirements.yml
Normal file
5
requirements.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
collections:
|
||||||
|
- name: https://opendev.org/openstack/ansible-config_template
|
||||||
|
version: master
|
||||||
|
type: git
|
Loading…
Reference in New Issue
Block a user