Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
automation_usb
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Joab Bremer
automation_usb
Commits
bf545fc1
Commit
bf545fc1
authored
Aug 31, 2021
by
Joab Bremer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update
parent
f4b7df11
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
13 deletions
+27
-13
host_web.sh
host_web.sh
+2
-11
update_ip.yml
update_ip.yml
+10
-2
usb_hosts_web
usb_hosts_web
+15
-0
No files found.
host_web.sh
View file @
bf545fc1
#!/usr/bin/bash
echo
""
echo
-e
"Fazendo backup dos certificados
\n
"
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
"
mv
/etc/ssl/certs/educadventista /etc/ssl/certs/educadventista_2021
#rm -rf /etc/ssl/certs/educadventista
update_ip.yml
View file @
bf545fc1
...
...
@@ -3,10 +3,18 @@
hosts
:
usb-group
tasks
:
-
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
command
:
sh /opt/host_web.sh
register
:
command_output
-
debug
:
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_hosts_web
0 → 100644
View file @
bf545fc1
[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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment