asquarezone / ansiblezone Goto Github PK
View Code? Open in Web Editor NEWThis repository for Ansible
License: Apache License 2.0
This repository for Ansible
License: Apache License 2.0
ansible@ip-172-31-22-72:/playbooks$ sudo vi apache.yml/playbooks$ ansible-playbook apache.yml
ansible@ip-172-31-22-72:
PLAY [all] ***************************************************************************************************************************
TASK [Gathering Facts] ***************************************************************************************************************
ok: [ip-172-31-38-231.us-west-2.compute.internal]
ok: [ip-172-31-37-173.us-west-2.compute.internal]
ok: [localhost]
TASK [installing apache] *************************************************************************************************************
ok: [ip-172-31-37-173.us-west-2.compute.internal]
ok: [localhost]
ok: [ip-172-31-38-231.us-west-2.compute.internal]
TASK [restart apache] ****************************************************************************************************************
fatal: [ip-172-31-37-173.us-west-2.compute.internal]: FAILED! => {"changed": false, "msg": "value of state must be one of: reloaded, restarted, started, stopped, got: restart"}
fatal: [ip-172-31-38-231.us-west-2.compute.internal]: FAILED! => {"changed": false, "msg": "value of state must be one of: reloaded, restarted, started, stopped, got: restart"}
fatal: [localhost]: FAILED! => {"changed": false, "msg": "value of state must be one of: reloaded, restarted, started, stopped, got: restart"}
to retry, use: --limit @/home/ansible/playbooks/apache.retry
PLAY RECAP ***************************************************************************************************************************
ip-172-31-37-173.us-west-2.compute.internal : ok=2 changed=0 unreachable=0 failed=1
ip-172-31-38-231.us-west-2.compute.internal : ok=2 changed=0 unreachable=0 failed=1
localhost : ok=2 changed=0 unreachable=0 failed=1
ansible@ip-172-31-22-72:~/playbooks$ sudo service apache2 status
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: inactive (dead) since Tue 2018-11-20 17:00:32 UTC; 27min ago
Docs: man:systemd-sysv-generator(8)
Process: 8642 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 8625 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)
Nov 20 17:00:32 ip-172-31-22-72 apache2[8625]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Nov 20 17:00:32 ip-172-31-22-72 apache2[8625]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Nov 20 17:00:32 ip-172-31-22-72 apache2[8625]: no listening sockets available, shutting down
Nov 20 17:00:32 ip-172-31-22-72 apache2[8625]: AH00015: Unable to open logs
Nov 20 17:00:32 ip-172-31-22-72 apache2[8625]: Action 'start' failed.
Nov 20 17:00:32 ip-172-31-22-72 apache2[8625]: The Apache error log may have more information.
Nov 20 17:00:32 ip-172-31-22-72 apache2[8625]: *
Nov 20 17:00:32 ip-172-31-22-72 apache2[8642]: * Stopping Apache httpd web server apache2
Nov 20 17:00:32 ip-172-31-22-72 apache2[8642]: *
Nov 20 17:00:32 ip-172-31-22-72 systemd[1]: Started LSB: Apache2 web server.
AnsibleZone/Playbooks/mytomcat/roles/tomcat/vars/main.yml
in this path ssh key is there
and also AnsibleZone/Playbooks/mytomcat/roles/tomcat/vars/main1.yml
which main file sshkey for ansible server and tomcat server
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.