Skip to main content

Ansible on Fedora Workstation 30

Ansible logo

RedHat acquired Ansible in 2015.

Ansible is a clear leader in IT automation and DevOps, and helps Red Hat take a significant step forward in our goal of creating frictionless IT.
— JOE FITZGERALDVICE PRESIDENT, MANAGEMENT, RED HAT
[tuyen@g73jh ~]$ sudo dnf -y install ansible
[sudo] password for tuyen:
Last metadata expiration check: 0:00:25 ago on Wed 02 Oct 2019 07:18:56 PM +07.
Dependencies resolved.
==========================================================================
 Package               Arch        Version             Repository    Size
==========================================================================
Installing:
 ansible               noarch      2.8.5-1.fc30        updates       15 M
Installing dependencies:
 python3-paramiko      noarch      2.5.0-1.fc30        updates      288 k
 python3-bcrypt        x86_64      3.1.4-7.fc30        fedora        41 k
 python3-jmespath      noarch      0.9.3-2.fc30        fedora        45 k
 python3-pynacl        x86_64      1.3.0-1.fc30        fedora        96 k

Transaction Summary
==========================================================================
Install  5 Packages

Total download size: 15 M
Installed size: 81 M
Downloading Packages:
(1/5): python3-bcrypt-3.1.4-7.fc30.x86_64 135 kB/s |  41 kB     00:00
(2/5): python3-jmespath-0.9.3-2.fc30.noar 124 kB/s |  45 kB     00:00
(3/5): python3-pynacl-1.3.0-1.fc30.x86_64 456 kB/s |  96 kB     00:00
(4/5): python3-paramiko-2.5.0-1.fc30.noar  99 kB/s | 288 kB     00:02
(5/5): ansible-2.8.5-1.fc30.noarch.rpm    2.3 MB/s |  15 MB     00:06
--------------------------------------------------------------------------
Total                                     1.9 MB/s |  15 MB     00:08
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                  1/1
  Installing       : python3-pynacl-1.3.0-1.fc30.x86_64               1/5
  Installing       : python3-jmespath-0.9.3-2.fc30.noarch             2/5
  Installing       : python3-bcrypt-3.1.4-7.fc30.x86_64               3/5
  Installing       : python3-paramiko-2.5.0-1.fc30.noarch             4/5
  Installing       : ansible-2.8.5-1.fc30.noarch                      5/5
  Running scriptlet: ansible-2.8.5-1.fc30.noarch                      5/5
  Verifying        : ansible-2.8.5-1.fc30.noarch                      1/5
  Verifying        : python3-paramiko-2.5.0-1.fc30.noarch             2/5
  Verifying        : python3-bcrypt-3.1.4-7.fc30.x86_64               3/5
  Verifying        : python3-jmespath-0.9.3-2.fc30.noarch             4/5
  Verifying        : python3-pynacl-1.3.0-1.fc30.x86_64               5/5

Installed:
  ansible-2.8.5-1.fc30.noarch        python3-paramiko-2.5.0-1.fc30.noarch
  python3-bcrypt-3.1.4-7.fc30.x86_64 python3-jmespath-0.9.3-2.fc30.noarch
  python3-pynacl-1.3.0-1.fc30.x86_64

Complete!
[tuyen@g73jh ~]$ which ansible
/usr/bin/ansible
[tuyen@g73jh ~]$ ansible --version
ansible 2.8.5
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/tuyen/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 3.7.4 (default, Jul  9 2019, 16:32:37) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)]
[tuyen@g73jh ~]$

Popular posts from this blog

Linux command: lastlog

lastlog command reports the most recent login of all users or of a given user. NAME lastlog - reports the most recent login of all users or of a given user SYNOPSIS lastlog [options] DESCRIPTION lastlog formats and prints the contents of the last login log /var/log/lastlog file. The login-name, port, and last login time will be printed. The default (no flags) causes lastlog entries to be printed, sorted by their order in /etc/passwd. OPTIONS The options which apply to the lastlog command are: -b, --before DAYS Print only lastlog records older than DAYS. -h, --help Display help message and exit. -R, --root CHROOT_DIR Apply changes in the CHROOT_DIR directory and use the configuration files from the CHROOT_DIR directory. -t, --time DAYS Print the lastlog records more recent than DAYS. -u, --user LOGIN|RANGE Print the ...

Powershell: Get-ChildItem

List, search/find files and directories with Get-ChildItem cmdlet.

Powershell: Test-NetConnection

PS C:\Users\tuyen> get-help Test-NetConnection NAME     Test-NetConnection SYNTAX     Test-NetConnection [[-ComputerName] <string>] [-TraceRoute] [-Hops <int>] [-InformationLevel {Quiet |     Detailed}]  [<CommonParameters>]     Test-NetConnection [[-ComputerName] <string>] [-CommonTCPPort] {HTTP | RDP | SMB | WINRM}     [-InformationLevel {Quiet | Detailed}]  [<CommonParameters>]     Test-NetConnection [[-ComputerName] <string>] -Port <int> [-InformationLevel {Quiet | Detailed}]     [<CommonParameters>]     Test-NetConnection [[-ComputerName] <string>] -DiagnoseRouting [-ConstrainSourceAddress <string>]     [-ConstrainInterface <uint32>] [-InformationLevel {Quiet | Detailed}]  [<CommonParameters>] ALIASES     TNC REMARKS     Get-Help cannot find the Help files fo...