update
This commit is contained in:
parent
dd0f23fdef
commit
9e7e920158
4 changed files with 42 additions and 22 deletions
|
|
@ -9,6 +9,7 @@ result_format = yaml
|
||||||
stdout_callback = default
|
stdout_callback = default
|
||||||
callback_result_format = yaml
|
callback_result_format = yaml
|
||||||
deprecation_warnings = False
|
deprecation_warnings = False
|
||||||
|
callbacks_enabled = profile_tasks
|
||||||
|
|
||||||
[ssh_connection]
|
[ssh_connection]
|
||||||
ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
|
ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
ignore_errors: "{{ ansible_check_mode }}"
|
ignore_errors: "{{ ansible_check_mode }}"
|
||||||
|
|
||||||
- name: Install EPEL repo.
|
- name: Install EPEL repo.
|
||||||
yum:
|
ansible.builtin.dnf:
|
||||||
name: "{{ epel_repo_url }}"
|
name: "{{ epel_repo_url }}"
|
||||||
state: present
|
state: present
|
||||||
register: result
|
register: result
|
||||||
|
|
@ -25,14 +25,14 @@
|
||||||
delay: 10
|
delay: 10
|
||||||
when: not epel_repofile_result.stat.exists
|
when: not epel_repofile_result.stat.exists
|
||||||
|
|
||||||
- name: Disable Main EPEL repo.
|
#- name: Disable Main EPEL repo.
|
||||||
ini_file:
|
# ini_file:
|
||||||
path: "/etc/yum.repos.d/epel.repo"
|
# path: "/etc/yum.repos.d/epel.repo"
|
||||||
section: epel
|
# section: epel
|
||||||
option: enabled
|
# option: enabled
|
||||||
value: "{{ epel_repo_disable | ternary(0, 1) }}"
|
# value: "{{ epel_repo_disable | ternary(0, 1) }}"
|
||||||
no_extra_spaces: true
|
# no_extra_spaces: true
|
||||||
mode: 0644
|
# mode: 0644
|
||||||
|
|
||||||
- name: Install soft from EPEL
|
- name: Install soft from EPEL
|
||||||
ansible.builtin.dnf:
|
ansible.builtin.dnf:
|
||||||
|
|
|
||||||
|
|
@ -33,8 +33,8 @@
|
||||||
name: crb
|
name: crb
|
||||||
state: enabled
|
state: enabled
|
||||||
|
|
||||||
#- name: Install EPEL repo
|
- name: Install EPEL repo
|
||||||
# ansible.builtin.include_tasks: install-epel-repo.yml
|
ansible.builtin.include_tasks: install-epel-repo.yml
|
||||||
|
|
||||||
#- name: Upgrade all packages
|
#- name: Upgrade all packages
|
||||||
# ansible.builtin.dnf:
|
# ansible.builtin.dnf:
|
||||||
|
|
@ -51,13 +51,11 @@
|
||||||
- sudo
|
- sudo
|
||||||
- traceroute
|
- traceroute
|
||||||
- tcpdump
|
- tcpdump
|
||||||
- screen
|
|
||||||
- whois
|
- whois
|
||||||
- telnet
|
- telnet
|
||||||
- sed
|
- sed
|
||||||
- tar
|
- tar
|
||||||
- unzip
|
- unzip
|
||||||
- unrar
|
|
||||||
- gzip
|
- gzip
|
||||||
- rsync
|
- rsync
|
||||||
- sysstat
|
- sysstat
|
||||||
|
|
@ -77,13 +75,22 @@
|
||||||
- numactl
|
- numactl
|
||||||
- lsof
|
- lsof
|
||||||
- nano
|
- nano
|
||||||
- htop
|
|
||||||
- btop
|
|
||||||
- bind-utils
|
- bind-utils
|
||||||
- psmisc
|
- psmisc
|
||||||
# - speedtest-cli
|
|
||||||
- python-pip
|
- python-pip
|
||||||
- open-vm-tools
|
- open-vm-tools
|
||||||
- qemu-guest-agent
|
- qemu-guest-agent
|
||||||
# - deltarpm
|
- cloud-utils-growpart
|
||||||
|
# - speedtest-cli
|
||||||
|
# - deltarpm
|
||||||
|
# - screen
|
||||||
|
# - unrar
|
||||||
|
# - htop
|
||||||
|
# - btop
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
- name: Обновить всё
|
||||||
|
become: true
|
||||||
|
package:
|
||||||
|
name: "*"
|
||||||
|
state: latest
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,16 @@
|
||||||
---
|
---
|
||||||
|
- name: Установка зависимостей SELinux
|
||||||
|
become: true
|
||||||
|
package:
|
||||||
|
name: "{{ (ansible_facts['distribution_major_version'] | int >= 8) | ternary('python3-libselinux', 'libselinux-python') }}"
|
||||||
|
state: present
|
||||||
|
|
||||||
|
#- name: Ensure libselinux is installed on the control node
|
||||||
|
# delegate_to: localhost
|
||||||
|
# become: false
|
||||||
|
# ansible.builtin.pip:
|
||||||
|
# name: libselinux
|
||||||
|
|
||||||
- name: Disable SELinux
|
- name: Disable SELinux
|
||||||
ansible.posix.selinux:
|
ansible.posix.selinux:
|
||||||
state: disabled
|
state: disabled
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue