Open main menu

CDOT Wiki β

Changes

Ops535 ansible lab

954 bytes removed, 19:47, 28 January 2021
Part 1: Installing Ansible on CentOS 7
** ansible-playbook firstrun.yaml
== Hardware and software required
== Part 1: Installing Ansible on CentOS 7 8 ==
: You only need to install the "ansible" package on your control VM.
:* Login as a regular user, change to the directory ~/ops435/lab9
:* Issue the following command to install the "ansible" package: <source lang="bash">
sudo yum install ansible -y
:* You may have to install the following dependent packages:<source lang="bash">
Dependencies Resolvedresolved. ===================================================================================================================== Package Arch Architecture Version Repository Size=====================================================================================================================
Installing:
ansible noarch 2.9.117-1.el7 el8 epel 17 MInstalling for dependencies: python-babel noarch 0.9.6-8.el7 base libsodium 1.4 M python-cffi x86_64 1.60.018-52.el7 base 218 el8 epel 162 k pythonpython3-enum34 babel noarch 2.5.1-5.0.el8 appstream 4-1.el7 base 52 k8 M pythonpython3-httplib2 noarch 0bcrypt x86_64 3.91.6-2-.el8.1.el7 extras 115 epel 44 k pythonpython3-idna jinja2 noarch 2.410.1-12.el7 base 94 el8_0 appstream 538 k pythonpython3-jinja2 jmespath noarch 2 0.79.20-411.el7 base 519 el8 appstream 45 k pythonpython3-markupsafe x86_64 0.1123-1019.el7 base 25 el8 appstream 39 k pythonpython3-paramiko pyasn1 noarch 2 0.13.17-96.el7 base 269 el8 appstream 126 k pythonpython3-ply noarch pynacl x86_64 1.3.40-115.el7 base 123 el8 epel 100 k python-pycparser sshpass noarch 2.14-1.el7 base 104 k python2-cryptography x86_64 1.7.206-29.el7 base 502 el8 epel 27 kInstalling weak dependencies: python2python3-jmespath paramiko noarch 0 2.94.0-3.el7 extras 39 k python2-pyasn1 noarch 0.1.9-7.el7 base 100 k sshpass x86_64 1.06-2.el7 extras 21 el8 epel 289 k
Transaction Summary
=====================================================================================================================Install 1 Package (+14 Dependent packages)11 Packages
Total download size: 21 23 MInstalled size: 120 123 MIs this ok [y/d/N]: </source>
: To confirm that you have Ansible installed, try the following command:<source lang="python">
[rchan@c7-rchan c8 ~]$ ansible --help
usage: ansible [-h] [--version] [-v] [-b] [--become-method BECOME_METHOD]
[--become-user BECOME_USER] [-K] [-i INVENTORY] [--list-hosts]
1,760
edits