Ansible: mudanças entre as edições

De Wiki Clusterlab.com.br
Ir para navegação Ir para pesquisar
Sem resumo de edição
 
(10 revisões intermediárias pelo mesmo usuário não estão sendo mostradas)
Linha 1: Linha 1:
=URLS=
*[http://docs.ansible.com/ansible/latest/ Documentation]
*[http://docs.ansible.com/ansible/latest/ Documentation]
*[https://docs.ansible.com/ansible/2.8/modules/modules_by_category.html Module Index]
=Log and Verbosity=
*[https://docs.ansible.com/ansible/latest/network/user_guide/network_debug_troubleshooting.html  Network Debug and Troubleshooting Guide]
<syntaxhighlight lang=bash>
# Specify the location for the log file
export ANSIBLE_LOG_PATH=~/ansible.log
# Enable Debug
export ANSIBLE_DEBUG=True
# Run with 4*v for connection level verbosity
ansible-playbook -vvvv ...
</syntaxhighlight>
=WSL=
=WSL=
*[https://wiki.clusterlab.com.br/index.php/PYTHON#Ansible_em_WSL Setup ansible for WSL with ubuntu]
*[https://wiki.clusterlab.com.br/index.php/PYTHON#Ansible_em_WSL Setup ansible for WSL with ubuntu]
=Fixing case sensitive=
<pre>
<pre>
- include_tasks: "os_{{ ansible_facts['os_family']|lower }}.yml"
- include_tasks: "os_{{ ansible_facts['os_family']|lower }}.yml"
</pre>
</pre>
=Running on=
==MAC OS==
[https://github.com/ansible/ansible/issues/32499 OSX crash complaining of operation `in progress in another thread when fork() was called`]
<pre>
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
</pre>
==Windows==
===WINRM===
<pre>
winrm quickconfig
dir wsman:\localhost\listener
Remove-Item-Path WSMan:\Localhost\listener\<name>
</pre>
====On MACOS====
<syntaxhighlight lang=bash>
$ python3 -m venv wrm
$ soruce wrm/bin/activate
$ pip install pip --upgrade
$ pip install pywinrm
</syntaxhighlight>
====On Windows====
<syntaxhighlight lang=powershell>
Enable-WSManCredSSP -Role Server -Force
</syntaxhighlight>

Edição atual tal como às 20h25min de 3 de novembro de 2020

URLS

Log and Verbosity

# Specify the location for the log file
export ANSIBLE_LOG_PATH=~/ansible.log
# Enable Debug
export ANSIBLE_DEBUG=True

# Run with 4*v for connection level verbosity
ansible-playbook -vvvv ...

WSL

Fixing case sensitive

- include_tasks: "os_{{ ansible_facts['os_family']|lower }}.yml"

Running on

MAC OS

OSX crash complaining of operation `in progress in another thread when fork() was called`

export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES

Windows

WINRM

winrm quickconfig

dir wsman:\localhost\listener

Remove-Item-Path WSMan:\Localhost\listener\<name>

On MACOS

$ python3 -m venv wrm
$ soruce wrm/bin/activate
$ pip install pip --upgrade
$ pip install pywinrm

On Windows

Enable-WSManCredSSP -Role Server -Force