mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
whitespace
This commit is contained in:
parent
6ea022de01
commit
a1b4123931
12 changed files with 23 additions and 23 deletions
|
@ -1,8 +1,8 @@
|
||||||
# ansibple-pull setup
|
# ansibple-pull setup
|
||||||
#
|
#
|
||||||
# on remote hosts, set up ansible to run periodically using the latest code
|
# on remote hosts, set up ansible to run periodically using the latest code
|
||||||
# from a particular checkout, in pull based fashion, inverting Ansible's
|
# from a particular checkout, in pull based fashion, inverting Ansible's
|
||||||
# usual push-based operating mode.
|
# usual push-based operating mode.
|
||||||
#
|
#
|
||||||
# This particular pull based mode is ideal for:
|
# This particular pull based mode is ideal for:
|
||||||
#
|
#
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
# DO NOT RUN THIS AGAINST YOUR HOSTS WITHOUT CHANGING THE repo_url
|
# DO NOT RUN THIS AGAINST YOUR HOSTS WITHOUT CHANGING THE repo_url
|
||||||
# TO SOMETHING YOU HAVE PERSONALLY VERIFIED
|
# TO SOMETHING YOU HAVE PERSONALLY VERIFIED
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
---
|
---
|
||||||
|
|
||||||
- hosts: pull_mode_hosts
|
- hosts: pull_mode_hosts
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
# and this is just a regular task line from a playbook, as we're used to.
|
# and this is just a regular task line from a playbook, as we're used to.
|
||||||
# but with variables in it that come from above. Note that the variables
|
# but with variables in it that come from above. Note that the variables
|
||||||
# from above are *also* available in templates
|
# from above are *also* available in templates
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
- name: ensure apache is latest
|
- name: ensure apache is latest
|
||||||
|
@ -47,5 +47,5 @@
|
||||||
- name: fail
|
- name: fail
|
||||||
action: command /bin/false
|
action: command /bin/false
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -16,9 +16,9 @@
|
||||||
# extraordinarily clean, and not littered with programming language
|
# extraordinarily clean, and not littered with programming language
|
||||||
# constructs -- so it's easily skimmed by humans.
|
# constructs -- so it's easily skimmed by humans.
|
||||||
#
|
#
|
||||||
# Remember to quote any variables if they are not numbers!
|
# Remember to quote any variables if they are not numbers!
|
||||||
#
|
#
|
||||||
# Interesting fact: aside from the $variables, these expressions are actually
|
# Interesting fact: aside from the $variables, these expressions are actually
|
||||||
# tiny bits of Python. They are evaluated in the context of each host, so different
|
# tiny bits of Python. They are evaluated in the context of each host, so different
|
||||||
# steps can be skipped on different hosts! They should evaluate to either True
|
# steps can be skipped on different hosts! They should evaluate to either True
|
||||||
# or False
|
# or False
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
- name: "do this if my favcolor is blue"
|
- name: "do this if my favcolor is blue"
|
||||||
action: shell /bin/false
|
action: shell /bin/false
|
||||||
only_if: '$is_favcolor_blue'
|
only_if: '$is_favcolor_blue'
|
||||||
|
|
||||||
- name: "do this if my favcolor is not blue"
|
- name: "do this if my favcolor is not blue"
|
||||||
action: shell /bin/true
|
action: shell /bin/true
|
||||||
only_if: 'not ($is_favcolor_blue)'
|
only_if: 'not ($is_favcolor_blue)'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
# see examples.yml first!
|
# see examples.yml first!
|
||||||
# This file explains some more advanced features of playbooks.
|
# This file explains some more advanced features of playbooks.
|
||||||
# because of the comments it's less concise than it normally is. But feel
|
# because of the comments it's less concise than it normally is. But feel
|
||||||
# free to comment your playbooks if you like.
|
# free to comment your playbooks if you like.
|
||||||
|
|
||||||
|
@ -34,12 +34,12 @@
|
||||||
|
|
||||||
# we could also have done something like:
|
# we could also have done something like:
|
||||||
# - include: wordpress.yml user=timmy
|
# - include: wordpress.yml user=timmy
|
||||||
# and had access to the template variable $user in the
|
# and had access to the template variable $user in the
|
||||||
# included file, if we wanted to. Variables from vars
|
# included file, if we wanted to. Variables from vars
|
||||||
# and vars_files are also available inside include files
|
# and vars_files are also available inside include files
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
|
|
||||||
# handlers can also be included from files, to promote reuse
|
# handlers can also be included from files, to promote reuse
|
||||||
# and simpler recipes, you may wish to only have one
|
# and simpler recipes, you may wish to only have one
|
||||||
# handler file for all your plays and playbooks
|
# handler file for all your plays and playbooks
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
# vars must be specified again for the next play in the playbook
|
# vars must be specified again for the next play in the playbook
|
||||||
# but can be reused by including from vars_files if you want
|
# but can be reused by including from vars_files if you want
|
||||||
# you can use vars, vars_files, or both. vars_files overrides
|
# you can use vars, vars_files, or both. vars_files overrides
|
||||||
# those set in vars.
|
# those set in vars.
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
release: 2.0
|
release: 2.0
|
||||||
|
|
|
@ -38,9 +38,9 @@
|
||||||
# let's demo file operations.
|
# let's demo file operations.
|
||||||
#
|
#
|
||||||
# We can 'copy' files or 'template' them instead, using jinja2
|
# We can 'copy' files or 'template' them instead, using jinja2
|
||||||
# as the templating engine. This is done using the variables
|
# as the templating engine. This is done using the variables
|
||||||
# from the vars section above mixed in with variables bubbled up
|
# from the vars section above mixed in with variables bubbled up
|
||||||
# automatically from tools like facter and ohai. 'copy'
|
# automatically from tools like facter and ohai. 'copy'
|
||||||
# works just like 'template' but does not do variable subsitution.
|
# works just like 'template' but does not do variable subsitution.
|
||||||
#
|
#
|
||||||
# If and only if the file changes, restart apache at the very
|
# If and only if the file changes, restart apache at the very
|
||||||
|
|
|
@ -18,4 +18,4 @@
|
||||||
action: mysql_db loginpass=$mysql_root_password db=bobdata state=present
|
action: mysql_db loginpass=$mysql_root_password db=bobdata state=present
|
||||||
|
|
||||||
- name: Ensure no user named 'sally' exists
|
- name: Ensure no user named 'sally' exists
|
||||||
action: mysql_user loginpass=$mysql_root_password user=sally state=absent
|
action: mysql_user loginpass=$mysql_root_password user=sally state=absent
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
# the tag feature and can be used in conjunction for very fine grained
|
# the tag feature and can be used in conjunction for very fine grained
|
||||||
# control over what you want to target when running ansible.
|
# control over what you want to target when running ansible.
|
||||||
|
|
||||||
- name: this is a play at the top level of a file
|
- name: this is a play at the top level of a file
|
||||||
hosts: all
|
hosts: all
|
||||||
user: root
|
user: root
|
||||||
tasks:
|
tasks:
|
||||||
|
|
|
@ -35,4 +35,4 @@
|
||||||
action: postgresql_db db=$dbname
|
action: postgresql_db db=$dbname
|
||||||
|
|
||||||
- name: ensure user has access to database
|
- name: ensure user has access to database
|
||||||
action: postgresql_user db=$dbname user=$dbuser password=$dbpassword
|
action: postgresql_user db=$dbname user=$dbuser password=$dbpassword
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
# vars_prompt:
|
# vars_prompt:
|
||||||
# release_version: "product release version"
|
# release_version: "product release version"
|
||||||
|
|
||||||
# prompts can also be specified like this, allowing for hiding the prompt as
|
# prompts can also be specified like this, allowing for hiding the prompt as
|
||||||
# entered. In the future, this may also be used to support crypted variables
|
# entered. In the future, this may also be used to support crypted variables
|
||||||
|
|
||||||
vars_prompt:
|
vars_prompt:
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# this is an example of how to template a file over using some variables derived
|
# this is an example of how to template a file over using some variables derived
|
||||||
# from the system. For instance, if you wanted to have different configuration
|
# from the system. For instance, if you wanted to have different configuration
|
||||||
# templates by OS version, this is a neat way to do it. Any Ansible facts, facter facts,
|
# templates by OS version, this is a neat way to do it. Any Ansible facts, facter facts,
|
||||||
# or ohai facts could be used to do this.
|
# or ohai facts could be used to do this.
|
||||||
|
|
||||||
- hosts: all
|
- hosts: all
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
# the tag to all tasks in it. Here, each task is given
|
# the tag to all tasks in it. Here, each task is given
|
||||||
# the tag extra
|
# the tag extra
|
||||||
|
|
||||||
tags:
|
tags:
|
||||||
- extra
|
- extra
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
user: root
|
user: root
|
||||||
tasks:
|
tasks:
|
||||||
- name: hi
|
- name: hi
|
||||||
tags:
|
tags:
|
||||||
- bar
|
- bar
|
||||||
action: shell echo "second task ran"
|
action: shell echo "second task ran"
|
||||||
- include: tasks/base.yml tags=base
|
- include: tasks/base.yml tags=base
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# this is the example of an included tasks file. It contains a flat list of tasks
|
# this is the example of an included tasks file. It contains a flat list of tasks
|
||||||
# they can notify other tasks, and have full access to variables from 'vars'
|
# they can notify other tasks, and have full access to variables from 'vars'
|
||||||
# or 'vars_files' directives. Further, if ohai or facter were installed on
|
# or 'vars_files' directives. Further, if ohai or facter were installed on
|
||||||
# the remote machines, variables from those tools can be accessed on the 'action'
|
# the remote machines, variables from those tools can be accessed on the 'action'
|
||||||
# line or in templates. Just prefix with 'facter_' or 'ohai_' before the particular
|
# line or in templates. Just prefix with 'facter_' or 'ohai_' before the particular
|
||||||
# variable.
|
# variable.
|
||||||
|
|
Loading…
Add table
Reference in a new issue