Skip to content

Commit

Permalink
Insert 3 files
Browse files Browse the repository at this point in the history
  • Loading branch information
SDV109 committed Dec 25, 2024
1 parent 4aa41f7 commit c1b94cf
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ansible.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[defaults]
inventory = ./inventory.txt
remote_tmp = /tmp/${USER}/ansible
allow_world_readable_tmpfiles = false # or "true" if the temporary directory on the remote host is mounted with POSIX acls disabled or the remote machines use ZFS.
host_key_checking = False
timeout = 60
deprecation_warnings = False
display_skipped_hosts = False

[ssh_connection]
pipelining = True

[persistent_connection]
retries = 3
connect_timeout = 60
command_timeout = 30
9 changes: 9 additions & 0 deletions inventory
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[hosts_backup]
192.168.62.211 hostname=test1 postgresql_exists=false

[all:vars]
ansible_connection='ssh'
ansible_ssh_port='22'
ansible_user='root'
ansible_ssh_pass='root' # "sshpass" package is required for use "ansible_ssh_pass"
#ansible_ssh_private_key_file=
9 changes: 9 additions & 0 deletions ping.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
- name: Test connection servers
hosts: all
become: yes

tasks:

- name: Ping servers
ping:

0 comments on commit c1b94cf

Please sign in to comment.