Mocate ansible_ssh_changes into a common directory
This commit is contained in:
parent
9ef814e782
commit
d45a394f63
6 changed files with 6 additions and 6 deletions
|
@ -23,7 +23,7 @@ How do I handle different machines needing different user accounts or ports to l
|
|||
|
||||
Setting inventory variables in the inventory file is the easiest way.
|
||||
|
||||
.. include:: ansible_ssh_changes_note.rst
|
||||
.. include:: ../rst_common/ansible_ssh_changes_note.rst
|
||||
|
||||
For instance, suppose these hosts have different usernames and ports::
|
||||
|
||||
|
|
|
@ -123,7 +123,7 @@ Here's what it would look like in a playbook, assuming the parameters were defin
|
|||
|
||||
The rax module returns data about the nodes it creates, like IP addresses, hostnames, and login passwords. By registering the return value of the step, it is possible used this data to dynamically add the resulting hosts to inventory (temporarily, in memory). This facilitates performing configuration actions on the hosts in a follow-on task. In the following example, the servers that were successfully created using the above task are dynamically added to a group called "raxhosts", with each nodes hostname, IP address, and root password being added to the inventory.
|
||||
|
||||
.. include:: ansible_ssh_changes_note.rst
|
||||
.. include:: ../rst_common/ansible_ssh_changes_note.rst
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ For numeric patterns, leading zeros can be included or removed, as desired. Rang
|
|||
db-[a:f].example.com
|
||||
|
||||
|
||||
.. include:: ansible_ssh_changes_note.rst
|
||||
.. include:: ../rst_common/ansible_ssh_changes_note.rst
|
||||
|
||||
You can also select the connection type and user on a per host basis:
|
||||
|
||||
|
@ -206,7 +206,7 @@ ansible_connection
|
|||
Connection type to the host. This can be the name of any of ansible's connection plugins. SSH protocol types are ``smart``, ``ssh`` or ``paramiko``. The default is smart. Non-SSH based types are described in the next section.
|
||||
|
||||
|
||||
.. include:: ansible_ssh_changes_note.rst
|
||||
.. include:: ../rst_common/ansible_ssh_changes_note.rst
|
||||
|
||||
SSH connection:
|
||||
|
||||
|
|
|
@ -158,7 +158,7 @@ Ansible's windows support relies on a few standard variables to indicate the use
|
|||
winserver1.example.com
|
||||
winserver2.example.com
|
||||
|
||||
.. include:: ansible_ssh_changes_note.rst
|
||||
.. include:: ../rst_common/ansible_ssh_changes_note.rst
|
||||
|
||||
In group_vars/windows.yml, define the following inventory variables::
|
||||
|
||||
|
|
|
@ -777,7 +777,7 @@ a use for it.
|
|||
|
||||
If multiple variables of the same name are defined in different places, they get overwritten in a certain order.
|
||||
|
||||
.. include:: ansible_ssh_changes_note.rst
|
||||
.. include:: ../rst_common/ansible_ssh_changes_note.rst
|
||||
|
||||
In 1.x, the precedence is as follows (with the last listed variables winning prioritization):
|
||||
|
||||
|
|
Loading…
Reference in a new issue