I manage 2 Clients (centos8) with Ansible, and i want to install mod-ssl on the webserver, python-passlib on all hosts and firewalld on all hosts. The Playbook should check every time it runs, wheter the 3 packages are the latest available.
I´ve already wrote a playbook, but i get the errormessage, that there is no package with the name "python-passlib"
Is there another name for this package on centos8? And i think my way to install this mod-ssl package is false as well... Could you guys check my Playbook and give me a hint ? :D
Here´s my playbook:
- hosts: all
become: yes
tasks:
- name: Install different services and keep them up-to-date
dnf:
name:
- firewalld
- python-passlib
state: latest
- hosts: webserver
become: yes
tasks:
- name: Install mod-ssl and keep it up-to-date
dnf:
name: mod-ssl
- hosts: webserver
become: yes
tasks:
- name: Insert a index.php site
copy:
src: /home/mike/devops_live_demo/index.php
dest: /var/www/html/
owner: mike
mode: '0644'
- hosts: webserver
become: yes
tasks:
- name: Reboot the Webserver
reboot:
Thank you guys in advance!! Greetings Mike