ansible_basic_installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ansible_basic_installation [2020/03/09 13:55] andonovjansible_basic_installation [2021/12/07 20:42] (current) andonovj
Line 6: Line 6:
   * Installing ubuntu Subsystem (only Windows 10+)   * Installing ubuntu Subsystem (only Windows 10+)
  
-We will do it both ways here :)+We will do it both ways here, but before we continue it is important to mention that ansible is disered state / agentless / automation system. 
 +In order for it to communicate with the targets it relies on: 
 + 
 +  * WinRm - For Windows Systems 
 +  * SSH - For Linux Systems 
 + 
 +So let's continue all :) 
 ====Cygwin==== ====Cygwin====
 Downloading and installing Cygwin is fairly easy. Just download the Cygwin and select ansible in the package: Downloading and installing Cygwin is fairly easy. Just download the Cygwin and select ansible in the package:
Line 63: Line 70:
 </Code> </Code>
  
 +====Communicate with Windows====
 +To communicate with windows we have to install couple other modules:
 +
 +  * Pywinrm - Used for communication with Windows
 +  * Pywinram[credssp] - Used for authentication
 +
 +<Code:bash|Install pywinrm>
 +root@DESKTOP-N65RKDP:~# pip3 install pywinrm
 +Collecting pywinrm
 +  Downloading https://files.pythonhosted.org/packages/fc/88/be0ea1af44c3bcc54e4c41e4056986743551693c77dfe50b48a3f4ba1bf7/pywinrm-0.4.1.tar.gz
 +Requirement already satisfied: requests>=2.9.1 in /usr/lib/python3/dist-packages (from pywinrm)
 +Collecting requests_ntlm>=0.3.0 (from pywinrm)
 +  Downloading https://files.pythonhosted.org/packages/03/4b/8b9a1afde8072c4d5710d9fa91433d504325821b038e00237dc8d6d833dc/requests_ntlm-1.1.0-py2.py3-none-any.whl
 +root@DESKTOP-N65RKDP:~# pip3 install pywinrm[credssp]
 +Requirement already satisfied: pywinrm[credssp] in /usr/local/lib/python3.6/dist-packages
 +Requirement already satisfied: six in /usr/lib/python3/dist-packages (from pywinrm[credssp])
 +Requirement already satisfied: requests>=2.9.1 in /usr/lib/python3/dist-packages (from pywinrm[credssp])
 +Requirement already satisfied: requests-ntlm>=0.3.0 in /usr/local/lib/python3.6/dist-packages (from pywinrm[credssp])
 +Requirement already satisfied: xmltodict in /usr/local/lib/python3.6/dist-packages (from pywinrm[credssp])
 +Collecting requests-credssp>=1.0.0; extra == "credssp" (from pywinrm[credssp])
 +  Downloading https://files.pythonhosted.org/packages/e8/b9/43cd780
 +</Code>
 +
 +=====Install Collections=====
 +From Ansible 2.10 or so, you have to install collections in Ansible, if you want to use them:
 +
 +====Install Oracle OCI====
 +To install Oracle collection: (oracle.oci) just run the following commands:
 +
 +<Code:bash|Install oracle.oci>
 +julien.andonov@julienaonovsMBP oci-ansible-collection % ansible-galaxy collection install oracle.oci
 +Starting galaxy collection install process
 +Process install dependency map
 +Starting collection install process
 +Downloading https://galaxy.ansible.com/download/oracle-oci-2.36.0.tar.gz to /Users/julien.andonov/.ansible/tmp/ansible-local-881012o19jld_/tmp_jma691c/oracle-oci-2.36.0-t77z2xqd
 +Installing 'oracle.oci:2.36.0' to '/Users/julien.andonov/.ansible/collections/ansible_collections/oracle/oci'
 +oracle.oci:2.36.0 was installed successfully
 +julien.andonov@julienaonovsMBP oci-ansible-collection %
 +
 +</Code>
  • ansible_basic_installation.1583762112.txt.gz
  • Last modified: 2020/03/09 13:55
  • by andonovj