modules: fix examples to use FQCN (#644)

* modules: fix examples to use FQCN

* fix

* fix

* fix
This commit is contained in:
Andrew Klychkov 2020-07-13 22:50:31 +03:00 committed by GitHub
parent 8b92e0454d
commit 41cfdda6a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
533 changed files with 2130 additions and 2130 deletions

View file

@ -60,72 +60,72 @@ options:
EXAMPLES = '''
- name: Add a setting to ~/.gitconfig
git_config:
community.general.git_config:
name: alias.ci
scope: global
value: commit
- name: Add a setting to ~/.gitconfig
git_config:
community.general.git_config:
name: alias.st
scope: global
value: status
- name: Remove a setting from ~/.gitconfig
git_config:
community.general.git_config:
name: alias.ci
scope: global
state: absent
- name: Add a setting to ~/.gitconfig
git_config:
community.general.git_config:
name: core.editor
scope: global
value: vim
- name: Add a setting system-wide
git_config:
community.general.git_config:
name: alias.remotev
scope: system
value: remote -v
- name: Add a setting to a system scope (default)
git_config:
community.general.git_config:
name: alias.diffc
value: diff --cached
- name: Add a setting to a system scope (default)
git_config:
community.general.git_config:
name: color.ui
value: auto
- name: Make etckeeper not complaining when it is invoked by cron
git_config:
community.general.git_config:
name: user.email
repo: /etc
scope: local
value: 'root@{{ ansible_fqdn }}'
- name: Read individual values from git config
git_config:
community.general.git_config:
name: alias.ci
scope: global
- name: Scope system is also assumed when reading values, unless list_all=yes
git_config:
community.general.git_config:
name: alias.diffc
- name: Read all values from git config
git_config:
community.general.git_config:
list_all: yes
scope: global
- name: When list_all is yes and no scope is specified, you get configuration from all scopes
git_config:
community.general.git_config:
list_all: yes
- name: Specify a repository to include local settings
git_config:
community.general.git_config:
list_all: yes
repo: /path/to/repo.git
'''