-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall.yaml
46 lines (46 loc) · 1.39 KB
/
install.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
- hosts: all
gather_facts: yes
become: yes
pre_tasks:
- name: Ensuring dnf-plugins are enabled...
ansible.builtin.lineinfile:
path: /etc/dnf/dnf.conf
regexp: '^plugins=.*'
line: 'plugins=1'
state: present
backup: yes
when: ansible_pkg_mgr == 'dnf'
- name: Ensuring yum-plugins are enabled...
ansible.builtin.lineinfile:
path: /etc/yum.conf
regexp: '^plugins=.*'
line: 'plugins=1'
state: present
backup: yes
when: ansible_pkg_mgr == 'yum'
tasks:
- name: Copying dnf-plugin-rkhunter.py to /usr/lib/python3.6/site-packages/dnf-plugins/...
ansible.builtin.copy:
src: dnf-plugin-rkhunter.py
dest: /usr/lib/python3.6/site-packages/dnf-plugins/
owner: root
group: root
mode: 0755
when: ansible_pkg_mgr == 'dnf'
- name: Copying yum-plugin-rkhunter.py to /usr/lib/yum-plugins/...
ansible.builtin.copy:
src: yum-plugin-rkhunter.py
dest: /usr/lib/yum-plugins/
owner: root
group: root
mode: 0755
when: ansible_pkg_mgr == 'yum'
- name: Copying yum-plugin-rkhunter.conf to /etc/yum/pluginconf.d/...
ansible.builtin.copy:
src: yum-plugin-rkhunter.conf
dest: /etc/yum/pluginconf.d/
owner: root
group: root
mode: 0755
when: ansible_pkg_mgr == 'yum'