GithubHelp home page GithubHelp logo

asquarezone / ansiblezone Goto Github PK

View Code? Open in Web Editor NEW
22.0 11.0 362.0 462 KB

This repository for Ansible

License: Apache License 2.0

Python 42.54% Shell 0.37% PHP 0.17% Jinja 56.58% DIGITAL Command Language 0.04% HCL 0.29%

ansiblezone's Introduction

AnsibleZone

This repository for Ansible

It consists of Class Room Samples

ansiblezone's People

Contributors

directdevops avatar qtkhajacloud avatar qtkhajadevops avatar qtsathish avatar qualitythought avatar shaikkhajaibrahim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ansiblezone's Issues

apache-2 not in activemode

ansible@ip-172-31-22-72:/playbooks$ sudo vi apache.yml
ansible@ip-172-31-22-72:
/playbooks$ ansible-playbook apache.yml

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.

i got a error that "ERROR: become is not a legal parameter in an Ansible Playbook"

my yaml file is

  • hosts: all
    become: yes
    vars:
    package_app: tomcat7
    tasks:

Hi can any one please tell this path identity

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.