Commit bf545fc1 authored by Joab Bremer's avatar Joab Bremer

Update

parent f4b7df11
#!/usr/bin/bash #!/usr/bin/bash
echo "" mv /etc/ssl/certs/educadventista /etc/ssl/certs/educadventista_2021
echo -e "Fazendo backup dos certificados\n" #rm -rf /etc/ssl/certs/educadventista
cp -rp /etc/ssl/certs/educadventista /etc/ssl/certs/educadventista_2021
echo -e "Inserindo novos Certificados\n"
cp -rp educadventista/ /etc/ssl/certs/educadventista
echo -e "recarregadno Certificados\n"
service httpd reload
echo -e "Concluido\n"
...@@ -3,10 +3,18 @@ ...@@ -3,10 +3,18 @@
hosts: usb-group hosts: usb-group
tasks: tasks:
- name: Transfer executable script script - name: Transfer executable script script
copy: src=/root/host_web.sh dest=/opt mode=0777 copy: src=/root/ansible/host_web.sh dest=/opt mode=0777
- name: Execute the script - name: Execute the script
command: sh /opt/host_web.sh command: sh /opt/host_web.sh
register: command_output register: command_output
- debug: - debug:
var: command_output.stdout_lines var: command_output.stdout_lines
- name: Transfer executable script script
copy: src=/root/ansible/educadventista dest=/etc/ssl/certs
- name: Reload service httpd, in all cases
service:
name: httpd
state: reloaded
[usb-group]
web.iaesc.org.br
web.asr.org.br
web.acsr.org.br
web.ansr.org.br
web.iacs.org.br
web.ansc.org.br
web.iaesc.org.br
web.asp.org.br
web.anp.org.br
web.aopr.org.br
web.iap.org.br
10.19.0.13
10.14.0.13
10.12.0.13
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment