User Tools

Site Tools


сервис_ansible

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
сервис_ansible [2022/07/26 11:44]
val [Использование handlers]
сервис_ansible [2022/07/29 04:52]
val [Использование шаблонов]
Line 96: Line 96:
  
 node1# ansible corpX -m ping node1# ansible corpX -m ping
 +node1# ansible localhost -m ping
 node1# ansible all -m ping node1# ansible all -m ping
 node1# ansible all -m ping -i inv_file.ini node1# ansible all -m ping -i inv_file.ini
Line 105: Line 106:
 node1# ansible corpX -f 2 -m apt -a '​pkg=apache2 state=present update_cache=true'​ node1# ansible corpX -f 2 -m apt -a '​pkg=apache2 state=present update_cache=true'​
  
-node1# ansible addnodes -f 5 -m apt -a '​pkg=ceph,​tgt-rbd state=present update_cache=true'​+node1# ansible addnodes ​-vv -f 5 -m apt -a '​pkg=ceph,​tgt-rbd state=present update_cache=true'​
  
 ubuntu20# apt install python3-paramiko ubuntu20# apt install python3-paramiko
Line 282: Line 283:
 <​body>​ <​body>​
 <h1> <h1>
-{{ ansible_fqdn }}+Hello from {{ ansible_fqdn }}
 </h1> </h1>
 </​body>​ </​body>​
сервис_ansible.txt · Last modified: 2024/03/25 10:43 by val