Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
a684053f
Commit
a684053f
authored
Feb 07, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update playbooks
parent
82918dfb
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
266 additions
and
7 deletions
+266
-7
check_upgrade_desktop.yml
ansible/playbooks/check_upgrade_desktop.yml
+15
-0
clean_desktop1.yml
ansible/playbooks/clean_desktop1.yml
+12
-0
control_sudo_weelonly.yml
ansible/playbooks/control_sudo_weelonly.yml
+12
-0
force_zabbix.yml
ansible/playbooks/forZabbix/force_zabbix.yml
+21
-0
iostat.yml
ansible/playbooks/forZabbix/iostat.yml
+26
-0
update_package.yml
ansible/playbooks/forZabbix/update_package.yml
+11
-0
gluster_update_from_task.yml
ansible/playbooks/gluster_update_from_task.yml
+3
-3
install-eterban-fail2ban.yml
ansible/playbooks/install-eterban-fail2ban.yml
+7
-0
lm-sensors.yml
ansible/playbooks/lm-sensors.yml
+12
-0
netdata-disable-email.yml
ansible/playbooks/netdata-disable-email.yml
+15
-0
touch_40-ipv6.yml
ansible/playbooks/touch_40-ipv6.yml
+13
-0
tune_chromium.yml
ansible/playbooks/tune_chromium.yml
+22
-0
upgrade_desktop.yml
ansible/playbooks/upgrade_desktop.yml
+8
-4
upgrade_eepm.yml
ansible/playbooks/upgrade_eepm.yml
+8
-0
upgrade_openssl.yml
ansible/playbooks/upgrade_openssl.yml
+16
-0
upgrade_openssl_cont.yml
ansible/playbooks/upgrade_openssl_cont.yml
+14
-0
upgrade_sudo.yml
ansible/playbooks/upgrade_sudo.yml
+18
-0
upgrade_sudo_conteiners.yml
ansible/playbooks/upgrade_sudo_conteiners.yml
+14
-0
upgrade_telegram.yml
ansible/playbooks/upgrade_telegram.yml
+19
-0
No files found.
ansible/playbooks/check_upgrade_desktop.yml
0 → 100644
View file @
a684053f
---
-
hosts
:
desktop
gather_facts
:
no
tasks
:
-
name
:
drop temp repo
shell
:
epm rr tasks
-
name
:
update
shell
:
epm update
-
name
:
upgrade
shell
:
epm upgrade --auto
ansible/playbooks/clean_desktop1.yml
0 → 100644
View file @
a684053f
---
-
hosts
:
desktop
gather_facts
:
no
tasks
:
-
name
:
update repositories
shell
:
epm update
register
:
epmu
-
name
:
clean files
shell
:
epmi systemd-settings-disable-dumpcore systemd-settings-enable-log-to-tty12 systemd-settings-enable-showstatus
ansible/playbooks/control_sudo_weelonly.yml
0 → 100644
View file @
a684053f
---
-
hosts
:
test2
gather_facts
:
no
tasks
:
-
name
:
update repositories
shell:epm upgrade
register
:
epm
# TODO: сначала смотреть, что там удаляется
-
name
:
control sudo weelonly
shell
:
control sudo weelonly
ansible/playbooks/forZabbix/force_zabbix.yml
0 → 100644
View file @
a684053f
---
-
hosts
:
smartmon
gather_facts
:
no
tasks
:
-
name
:
copy script
copy
:
src=/var/tmp/check_smartmon dest=/usr/lib/nagios/plugins
become
:
true
# - name: copy script
# copy: src=/usr/local/sbin/script.sh dest=/usr/local/sbin
# become: true
#
# - name: copy second script
# copy: src=/usr/local/sbin/for_zabbix.sh dest=/usr/local/sbin
# become: true
#
# - name: start script
# shell: bash /usr/local/sbin/script.sh
# become: true
ansible/playbooks/forZabbix/iostat.yml
0 → 100644
View file @
a684053f
---
-
hosts
:
testZABBIX1
gather_facts
:
no
tasks
:
-
name
:
update repositories
shell
:
epm update
-
name
:
install iostat
shell
:
epm --auto install sysstat
-
name
:
install hddtemp
shell
:
epm --auto install hddtemp
-
name
:
copy script
copy
:
src=/usr/local/sbin/iostat.sh dest=/usr/local/sbin
-
name
:
start script
shell
:
bash /usr/local/sbin/iostat.sh
-
name
:
Add monitoting disk util with iostat.
cron
:
name
:
'
iostat
output'
job
:
'
DATA=$(S_TIME_FORMAT=ISO
/usr/bin/iostat
-yxdt
-o
JSON
59
1)
;
echo
"$DATA"
>/tmp/iostat-cron.out'
state
:
present
tags
:
cronjob
\ No newline at end of file
ansible/playbooks/forZabbix/update_package.yml
0 → 100644
View file @
a684053f
---
-
hosts
:
testZABBIX1
gather_facts
:
no
tasks
:
-
name
:
copy script
copy
:
src=/usr/local/sbin/del_agent.sh dest=/usr/local/sbin
-
name
:
start script
shell
:
bash /usr/local/sbin/del_agent.sh
\ No newline at end of file
ansible/playbooks/gluster_update_from_task.yml
View file @
a684053f
...
...
@@ -5,12 +5,12 @@
tasks
:
-
name
:
add repo
shell
:
epm addrepo
198327
shell
:
epm addrepo
245562
-
name
:
update repo
shell
:
epm update ||
true
-
name
:
update gluster
shell
:
epm install glusterfs
3
--auto
shell
:
epm install glusterfs
7-server
--auto
-
name
:
restart gluster
shell
:
serv glusterd restart
-
name
:
remove repo
shell
:
epm removerepo
198327
shell
:
epm removerepo
245562
ansible/playbooks/install-eterban-fail2ban.yml
0 → 100644
View file @
a684053f
---
-
hosts
:
test
gather_facts
:
no
tasks
:
-
name
:
install eterban-fail2ban
shell
:
epm update
ansible/playbooks/lm-sensors.yml
0 → 100644
View file @
a684053f
---
-
hosts
:
lm-sensors
gather_facts
:
no
tasks
:
-
name
:
update repositories
shell
:
epm update
-
name
:
install sensors
shell
:
epm --auto install lm_sensors
ansible/playbooks/netdata-disable-email.yml
0 → 100644
View file @
a684053f
---
-
hosts
:
poweroff
gather_facts
:
no
tasks
:
-
name
:
disable email netdata
lineinfile
:
dest
:
/etc/netdata/health_alarm_notify.conf
regexp
:
'
^SEND_EMAIL="YES"'
line
:
'
SEND_EMAIL="NO"'
state
:
present
-
name
:
restart netdata
shell
:
serv netdata restart
register
:
restart-netdata
ansible/playbooks/touch_40-ipv6.yml
0 → 100644
View file @
a684053f
---
-
hosts
:
desktop
gather_facts
:
no
tasks
:
-
name
:
create file
copy
:
dest
:
"
/etc/sysctl.d/40-ipv6.conf"
content
:
|
# Enable IPv6 Privacy Extensions
net.ipv6.conf.all.use_tempaddr = 2
net.ipv6.conf.default.use_tempaddr = 2
ansible/playbooks/tune_chromium.yml
0 → 100644
View file @
a684053f
---
-
hosts
:
desktop
gather_facts
:
no
tasks
:
# - name: update repositories
# shell: epm update
# register: epmu
# - name: upgrade --no-remove
# shell: epm upgrade --auto --no-remove
-
name
:
mkdir
shell
:
mkdir -p /etc/chromium/policies/recommended
-
name
:
create file
copy
:
dest
:
"
/etc/chromium/policies/recommended/etersoft-kerberos.json"
content
:
|
{
"AuthServerWhitelist": "*.etersoft.ru,*.eterhost.ru",
"AuthNegotiateDelegateWhitelist": "*.etersoft.ru,*.eterhost.ru"
}
ansible/playbooks/upgrade_desktop.yml
View file @
a684053f
...
...
@@ -5,12 +5,16 @@
-
name
:
update repositories
shell
:
epm update
register
:
epmu
-
name
:
upgrade epm
shell
:
epm upgrade --auto
# - name: upgrade --no-remove
# shell: epm upgrade --auto --no-remove
# TODO: сначала смотреть, что там удаляется
-
name
:
upgrade
shell
:
epm upgrade --auto
#
TODO: сначала смотреть, что там удаляется
#
- name: upgrade
#
shell: epm upgrade --auto
# - name: upgrade internal
# shell: epmi /var/ftp/tmp/lav/etersoft-devel-utils-1.8.11-alt1.noarch.rpm
ansible/playbooks/upgrade_eepm.yml
0 → 100644
View file @
a684053f
---
-
hosts
:
desktop
gather_facts
:
no
tasks
:
-
name
:
upgrade epm
shell
:
epm upgrade 267583
ansible/playbooks/upgrade_openssl.yml
0 → 100644
View file @
a684053f
---
-
hosts
:
sudoupgrade
gather_facts
:
no
tasks
:
-
name
:
update repositories
shell
:
epm update
register
:
epmu
# - name: upgrade --no-remove
# shell: epm upgrade --auto --no-remove
# TODO: сначала смотреть, что там удаляется
-
name
:
upgrade openssl
shell
:
epm --auto install openssl
\ No newline at end of file
ansible/playbooks/upgrade_openssl_cont.yml
0 → 100644
View file @
a684053f
---
-
hosts
:
sudoupgradeconteiners
gather_facts
:
no
tasks
:
-
name
:
check version openssl
shell
:
evz exec all "epmq openssl"
-
name
:
update repositoris
shell
:
evz exec all "epm update"
-
name
:
install new openssl
shell
:
evz exec all "epmi openssl </dev/null --auto"
\ No newline at end of file
ansible/playbooks/upgrade_sudo.yml
0 → 100644
View file @
a684053f
---
-
hosts
:
sudoupgrade
gather_facts
:
no
tasks
:
-
name
:
update repositories
shell
:
epm update
register
:
epmu
# - name: upgrade --no-remove
# shell: epm upgrade --auto --no-remove
# TODO: сначала смотреть, что там удаляется
-
name
:
install new sudo
shell
:
epm --auto install sudo
# - name: drop temp repo
# shell: epm rr 248002
ansible/playbooks/upgrade_sudo_conteiners.yml
0 → 100644
View file @
a684053f
---
-
hosts
:
sudoupgradeconteiners
gather_facts
:
no
tasks
:
-
name
:
check version sudo
shell
:
evz exec "epmqp sudo" all
-
name
:
update repositoris
shell
:
evz exec "epm update" all
-
name
:
install new sudo
shell
:
evz exec "epmi sudo" all
ansible/playbooks/upgrade_telegram.yml
0 → 100644
View file @
a684053f
---
-
hosts
:
desktop
gather_facts
:
no
tasks
:
# - name: update repositories
# shell: epm ar 248002 ; epm update
# register: epmu
# - name: upgrade --no-remove
# shell: epm upgrade --auto --no-remove
# TODO: сначала смотреть, что там удаляется
# - name: install new telegram
# shell: epm --auto install telegram-desktop
-
name
:
drop temp repo
shell
:
epm rr 248002
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