This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18.191.108.32 | SUCCESS => { | |
"changed": false, | |
"ping": "pong" | |
} | |
18.223.152.37 | SUCCESS => { | |
"changed": false, | |
"ping": "pong" | |
} | |
18.222.226.59 | SUCCESS => { | |
"changed": false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[test-servers] | |
18.223.152.37 | |
18.191.108.32 | |
18.222.226.59 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18.223.152.37 | SUCCESS => { | |
"ansible_facts": { | |
"ansible_all_ipv4_addresses": [ | |
"172.31.24.96" | |
], | |
"ansible_all_ipv6_addresses": [ | |
"fe80::4e3:8bff:fec0:80bc" | |
], | |
"ansible_apparmor": { | |
"status": "disabled" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18.223.152.37 | SUCCESS => { | |
"changed": true, | |
"checksum": "2274510a91dabeef3ca39083104d1544c218129b", | |
"dest": "/tmp/blog3.txt", | |
"gid": 1000, | |
"group": "ec2-user", | |
"md5sum": "a74feaac59d7c23f40cff5ea1e7baece", | |
"mode": "0664", | |
"owner": "ec2-user", | |
"secontext": "unconfined_u:object_r:user_home_t:s0", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18.223.152.37 | SUCCESS => { | |
"changed": true, | |
"msg": "", | |
"rc": 0, | |
"results": [ | |
"Loaded plugins: amazon-id, rhui-lb, search-disabled-repos\nResolving Dependencies\n--> Running transaction check\n---> Package httpd.x86_64 0:2.4.6-80.el7_5.1 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n httpd x86_64 2.4.6-80.el7_5.1 rhui-REGION-rhel-server-releases 1.2 M\n\nTransaction Summary\n================================================================================\nInstall 1 Package\n\nTotal download size: 1.2 M\nInstalled size: 3.7 M\nDownloading packages:\nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : httpd-2.4.6-80.el7_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18.191.108.32 | SUCCESS | rc=0 >> | |
total 16 | |
drwx------. 5 ec2-user ec2-user 123 Oct 3 06:47 . | |
drwxr-xr-x. 3 root root 22 Sep 28 10:16 .. | |
drwx------. 3 ec2-user ec2-user 17 Oct 1 07:18 .ansible | |
-rw-------. 1 ec2-user ec2-user 73 Oct 1 07:13 .bash_history | |
-rw-r--r--. 1 ec2-user ec2-user 18 Sep 26 2017 .bash_logout | |
-rw-r--r--. 1 ec2-user ec2-user 193 Sep 26 2017 .bash_profile | |
-rw-r--r--. 1 ec2-user ec2-user 231 Sep 26 2017 .bashrc | |
drwxrw----. 3 ec2-user ec2-user 19 Oct 3 06:47 .pki |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18.223.152.37 | SUCCESS => { | |
"changed": true, | |
"name": "httpd", | |
"state": "started", | |
"status": { | |
"ActiveEnterTimestampMonotonic": "0", | |
"ActiveExitTimestampMonotonic": "0", | |
"ActiveState": "inactive", | |
"After": "nss-lookup.target tmp.mount -.mount system.slice network.target basic.target remote-fs.target systemd-journald.socket", | |
"AllowIsolate": "no", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18.223.152.37 | SUCCESS => { | |
"msg": "Hello" | |
} | |
18.191.108.32 | SUCCESS => { | |
"msg": "Hello" | |
} | |
18.222.226.59 | SUCCESS => { | |
"msg": "Hello" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Use test-servers | |
hosts: test-servers | |
become: yes | |
become_user: root | |
vars: | |
source: /home/knoldus/Personal/blogs/Ansible/blog1.txt | |
destination: /tmp | |
tasks: | |
- name: copy local files to remote machines |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Gather hosts | |
hosts: test-servers | |
tasks: | |
- debug: | |
msg: Hello Ist Play | |
- name: include a playbook | |
include: sample.yml |
OlderNewer