Changeset - 070a91914ab5
[Not reviewed]
0 17 0
Branko Majic (branko) - 7 years ago 2017-08-21 13:35:01
branko@majic.rs
MAR-120: Updated tests to use pipelining and added warning about become/become_user to usage instructions.
17 files changed with 80 insertions and 0 deletions:
0 comments (0 inline, 0 general)
docs/usage.rst
Show inline comments
 
@@ -162,6 +162,17 @@ First of all, let's set-up some basic directory structure and configuration:
 

	
 
1. Create Ansible configuration file.
 

	
 
   .. warning::
 
      Since Ansible 2.x has introduced much stricter controls over security of
 
      deployed Python scripts, it is recommended (as in this example) to use the
 
      ``pipelining`` option (which should also improve performance). This is in
 
      particular necessary in cases where the SSH user connecting to remote
 
      machine is *not* ``root``, but there are tasks that use ``become`` with
 
      non-root ``become_user`` (which is the case in Majic Ansible Roles). See
 
      `official documentation
 
      <http://docs.ansible.com/ansible/latest/become.html#becoming-an-unprivileged-user>`_
 
      and other alternatives to this.
 

	
 
   :file:`~/mysite/ansible.cfg`
 

	
 
   ::
 
@@ -173,6 +184,9 @@ First of all, let's set-up some basic directory structure and configuration:
 
     retry_files_save_path = /home/ansible/mysite/retry
 
     inventory = /home/ansible/mysite/hosts
 

	
 
     [ssh_connection]
 
     pipelining = True
 

	
 
2. Create directory where retry files will be stored at (so they woudln't
 
   pollute your home directory)::
 

	
roles/backup/molecule.yml
Show inline comments
 
---
 

	
 
ansible:
 
  ansiblecfg_ssh_connection:
 
    pipelining: True
 

	
 
dependency: {}
 

	
 
driver:
roles/backup_client/molecule.yml
Show inline comments
 
---
 

	
 
ansible:
 
  ansiblecfg_ssh_connection:
 
    pipelining: True
 

	
 
dependency: {}
 

	
 
driver:
roles/backup_server/molecule.yml
Show inline comments
 
---
 

	
 
ansible:
 
  ansiblecfg_ssh_connection:
 
    pipelining: True
 

	
 
dependency: {}
 

	
 
driver:
roles/bootstrap/molecule.yml
Show inline comments
 
---
 

	
 
ansible:
 
  ansiblecfg_ssh_connection:
 
    pipelining: True
 

	
 
dependency: {}
 

	
 
driver:
roles/common/molecule.yml
Show inline comments
 
---
 

	
 
ansible:
 
  ansiblecfg_ssh_connection:
 
    pipelining: True
 

	
 
dependency: {}
 

	
 
driver:
roles/database/molecule.yml
Show inline comments
 
---
 

	
 
ansible:
 
  ansiblecfg_ssh_connection:
 
    pipelining: True
 

	
 
dependency: {}
 

	
 
driver:
roles/database_server/molecule.yml
Show inline comments
 
---
 

	
 
ansible:
 
  ansiblecfg_ssh_connection:
 
    pipelining: True
 

	
 
dependency: {}
 

	
 
driver:
roles/ldap_client/molecule.yml
Show inline comments
 
---
 

	
 
ansible:
 
  ansiblecfg_ssh_connection:
 
    pipelining: True
 

	
 
dependency: {}
 

	
 
driver:
roles/ldap_server/molecule.yml
Show inline comments
 
---
 

	
 
ansible:
 
  ansiblecfg_ssh_connection:
 
    pipelining: True
 

	
 
dependency: {}
 

	
 
driver:
roles/mail_forwarder/molecule.yml
Show inline comments
 
---
 

	
 
ansible:
 
  ansiblecfg_ssh_connection:
 
    pipelining: True
 

	
 
dependency: {}
 

	
 
driver:
roles/mail_server/molecule.yml
Show inline comments
 
---
 

	
 
ansible:
 
  ansiblecfg_ssh_connection:
 
    pipelining: True
 

	
 
dependency: {}
 

	
 
driver:
roles/php_website/molecule.yml
Show inline comments
 
---
 

	
 
ansible:
 
  ansiblecfg_ssh_connection:
 
    pipelining: True
 

	
 
dependency: {}
 

	
 
driver:
roles/preseed/molecule.yml
Show inline comments
 
---
 

	
 
ansible:
 
  ansiblecfg_ssh_connection:
 
    pipelining: True
 

	
 
dependency: {}
 

	
 
driver:
roles/web_server/molecule.yml
Show inline comments
 
---
 

	
 
ansible:
 
  ansiblecfg_ssh_connection:
 
    pipelining: True
 

	
 
dependency: {}
 

	
 
driver:
roles/wsgi_website/molecule.yml
Show inline comments
 
---
 

	
 
ansible:
 
  ansiblecfg_ssh_connection:
 
    pipelining: True
 

	
 
dependency: {}
 

	
 
driver:
roles/xmpp_server/molecule.yml
Show inline comments
 
---
 

	
 
ansible:
 
  ansiblecfg_ssh_connection:
 
    pipelining: True
 

	
 
dependency: {}
 

	
 
driver:
0 comments (0 inline, 0 general)