mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-13 19:56:38 +05:00
Updated rpm ansible script
This commit is contained in:
committed by
Dan Christian Bogos
parent
f7a6464834
commit
bf73726c35
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user