Fix Ansible documentation in part of example formatting. Part 2 (#333)

* Fix Ansible documentation in part of example formatting

* fix

* Revert osx_defaults.py
This commit is contained in:
Andrew Klychkov 2020-05-15 13:27:06 +03:00 committed by GitHub
commit 327832dcbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 299 additions and 268 deletions

View file

@ -63,8 +63,8 @@ extends_documentation_fragment: files
'''
EXAMPLES = """
# Add a user to a password file and ensure permissions are set
- htpasswd:
- name: Add a user to a password file and ensure permissions are set
htpasswd:
path: /etc/nginx/passwdfile
name: janedoe
password: '9s36?;fyNp'
@ -72,14 +72,14 @@ EXAMPLES = """
group: www-data
mode: 0640
# Remove a user from a password file
- htpasswd:
- name: Remove a user from a password file
htpasswd:
path: /etc/apache2/passwdfile
name: foobar
state: absent
# Add a user to a password file suitable for use by libpam-pwdfile
- htpasswd:
- name: Add a user to a password file suitable for use by libpam-pwdfile
htpasswd:
path: /etc/mail/passwords
name: alex
password: oedu2eGh