Skip to content

Instantly share code, notes, and snippets.

@igorbarinov
Created December 15, 2017 23:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igorbarinov/26a55cc5c39156398252d32a7c596910 to your computer and use it in GitHub Desktop.
Save igorbarinov/26a55cc5c39156398252d32a7c596910 to your computer and use it in GitHub Desktop.
[ubuntu@light deployment-playbooks]$ ansible-playbook -i hosts site.yml -t netstat --extra-vars "ansible_python_interpreter=/usr/bin/python"
[DEPRECATION WARNING]: The use of 'include' for tasks has been deprecated. Use 'import_tasks' for static inclusions or 'include_tasks' for dynamic inclusions. This feature will be removed in a future release.
Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: include is kept for backwards compatibility but usage is discouraged. The module documentation details page may explain more about this rationale.. This feature will be removed in a
future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: 'include' for playbook includes. You should use 'import_playbook' instead. This feature will be removed in version 2.8. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
PLAY [all] ********************************************************************************************************************************************************************************************************
TASK [Gathering Facts] ********************************************************************************************************************************************************************************************
ok: [54.173.22.196]
[WARNING]: Could not match supplied host pattern, ignoring: bootnode
PLAY [bootnode] ***************************************************************************************************************************************************************************************************
skipping: no hosts matched
PLAY [Create bootnode security group] *****************************************************************************************************************************************************************************
PLAY [Create bootnode security group] *****************************************************************************************************************************************************************************
[WARNING]: Could not match supplied host pattern, ignoring: validator
PLAY [validator] **************************************************************************************************************************************************************************************************
skipping: no hosts matched
PLAY [Remove validator security group] ****************************************************************************************************************************************************************************
PLAY [Create validator security group] ****************************************************************************************************************************************************************************
[WARNING]: Could not match supplied host pattern, ignoring: netstat
PLAY [netstat] ****************************************************************************************************************************************************************************************************
skipping: no hosts matched
PLAY [Remove netstat security group] ******************************************************************************************************************************************************************************
TASK [Clear Security group] ***************************************************************************************************************************************************************************************
changed: [localhost]
PLAY [Create netstat security group] ******************************************************************************************************************************************************************************
TASK [Allow outbound traffic] *************************************************************************************************************************************************************************************
ok: [localhost]
TASK [Add ssh access] *********************************************************************************************************************************************************************************************
changed: [localhost] => (item=22)
TASK [Add https access] *******************************************************************************************************************************************************************************************
changed: [localhost]
TASK [Add http-3000 access] ***************************************************************************************************************************************************************************************
changed: [localhost] => (item=3000)
[WARNING]: Could not match supplied host pattern, ignoring: explorer
PLAY [explorer] ***************************************************************************************************************************************************************************************************
skipping: no hosts matched
PLAY [Create explorer security group] *****************************************************************************************************************************************************************************
PLAY [Create explorer security group] *****************************************************************************************************************************************************************************
[WARNING]: Could not match supplied host pattern, ignoring: moc
PLAY [moc] ********************************************************************************************************************************************************************************************************
skipping: no hosts matched
PLAY [Create moc security group] **********************************************************************************************************************************************************************************
PLAY [Create moc security group] **********************************************************************************************************************************************************************************
PLAY RECAP ********************************************************************************************************************************************************************************************************
54.173.22.196 : ok=1 changed=0 unreachable=0 failed=0
localhost : ok=5 changed=4 unreachable=0 failed=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment