Ansible
https://www.youtube.com/watch?v=3eRQDA7Y-lA&list=PLg5SS_4L6LYufspdPupdynbMQTBnZd31N&index=1
Права доступа:
Код: Выделить всё
usermod -a -G sudo gt
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/index.html#description
Например модуль ping
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/ping_module.html#ansible-collections-ansible-builtin-ping-module
Псевдо-графическое представление всех групп-хостовsudo apt install ansible sshpass python3-apt-dbg
Код: Выделить всё
ansible-inventory all --graph
Код: Выделить всё
ansible all --list-hosts -v
Код: Выделить всё
ansible all -m ping -v
при использовании параметра -vv выдаст больше инфы, например конфиг:
/home/gt/ans/ansible.cfg
Скопирует файл vpnbook.pass из текущего каталога на все компы в директорию /home/gt с правами 644
Код: Выделить всё
ansible all -m copy -a "src=vpnbook.pass dest=/home/gt mode=644"
Код: Выделить всё
ansible all -m copy -a "src=vpnbook.pass dest=/home/gt mode=644" -b
Код: Выделить всё
ansible all -m file -a "patch=/home/gt/vpnbook.pass state=absent"
Код: Выделить всё
-m get_url -a "url=https://адрес dest=/home/gt/Downloads"
Код: Выделить всё
-m shell -a "df -Th"
Код: Выделить всё
-m uri -a "url=https://https://www.vpnbook.com/freevpn"
Код: Выделить всё
-m uri -a "url=https://https://www.vpnbook.com/freevpn return_content=yes"
Код: Выделить всё
-m deb -a "name=имя_пакета state=install" -b
Код: Выделить всё
-m service -a "name=демон state=started enabled=yes" -b
Код: Выделить всё
-m service -a "name=пакет state=removed" -b
Код: Выделить всё
ansible all -m ping -u 8host