Updated rpm ansible script

This commit is contained in:
Trial97
2021-04-16 17:05:12 +03:00
committed by Dan Christian Bogos
parent f7a6464834
commit bf73726c35
2 changed files with 9 additions and 9 deletions

View File

@@ -26,17 +26,9 @@
state: present
ignore_errors: true
- name: Add HRNGDEVICE=/dev/urandom so we can execute rngd
become: true
lineinfile:
path: /etc/default/rng-tools
line: HRNGDEVICE=/dev/urandom
insertafter: last
create: yes
- name: generate randomness
become: true
shell: "sudo /etc/init.d/rng-tools restart"
shell: "sudo rngd -r /dev/urandom"
ignore_errors: true
- name: generate gpg key

View File

@@ -314,6 +314,14 @@
with_items: "{{ rmpFileName.stdout_lines }}"
when: cgrates_branch != "master" and gitTagVar.stdout_lines|length == 0
- name: Nginx on CentOS needs additional permissions for the new rpmfile
become: true
shell: "sudo chcon -t httpd_sys_content_t /var/packages/ -R"
- name: Nginx on CentOS needs additional permissions2 for the new rpmfile
become: true
shell: "sudo chcon -t httpd_sys_rw_content_t /var/packages/ -R"
- hosts: pkg
remote_user: '{{ user }}'
tasks: