How to Install Software with Ansible

preview_player
Показать описание
In this video, I go over how to install software using Ansible package managers APT and Yum

0:00 About Ansible Package, Yum and Apt Module
0:38 Creating a Playbook to install software using APT module
2:14 Running the Playbook to install nmap
2:48 Installing Packages using the Package module
Рекомендации по теме
Комментарии
Автор

How to install docker using ansible-playbook? Can you help me out in this

suhairabdul
Автор

Hi, very nice tutorial
I am new to ansible and I find i very interesting working with it.
I would be very grateful if you could help me create a script to check the what version of Firefox is installed on a remote PC(windows 10). for your information I am using a linux platform to install software on the remote PC

ahaddou
Автор

Hiya quick question re ansible for windows stuff.
Tryna install an applciation forticlient with ansible on windows with following playbook. Gives the general error as:
"module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
checked the logs at the server where it will be installed.
whilst restarting, something is preventing the restart as installation requires restart. I reckon it has be executed as privileged access so it can restart.
my playbook looks like this:
- name: Install FortiClient on Windows Server
hosts:
- ----
gather_facts: no
tasks:
- name: Install FortiClient on Windows Server
ansible.windows.win_package:
path:
arguments: '/quiet /restart'
state: present
become: true
become_method: runas
vars:
ansible_become_user: ----
ansible_become_password: ---

mehransaeed