Hi Kai,

Thanks for your reply, I resolved the error I was previously facing. Now I 
have issues with Jenkins deployment :-


[root@ggnmaster2 jenkins]# ansible-playbook site.yml
PLAY [Configure CI server] 
*********************************************************************************************************************************************
TASK [Gathering Facts] 
*************************************************************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [git : install git] 
***********************************************************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.java : Include OS-specific variables.] 
***************************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.java : Include OS-specific variables for Fedora.] 
****************************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.java : Include version-specific variables for Ubuntu.] 
***********************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.java : Define java_packages.] 
************************************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.java : include] 
**************************************************************************************************************************************
included: /etc/ansible/roles/geerlingguy.java/tasks/setup-RedHat.yml for 
ggnmaster1.tb.ores.del.equant.com
TASK [geerlingguy.java : Ensure Java is installed.] 
********************************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com] => (item=java-1.7.0-openjdk)
TASK [geerlingguy.java : include] 
**************************************************************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.java : include] 
**************************************************************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.java : Set JAVA_HOME if configured.] 
*****************************************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Include OS-Specific variables] 
*************************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Define jenkins_repo_url] 
*******************************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Define jenkins_repo_key_url] 
***************************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Define jenkins_pkg_url] 
********************************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Ensure dependencies are installed.] 
********************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Ensure Jenkins repo is installed.] 
*********************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Add Jenkins repo GPG key.] 
*****************************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Download specific Jenkins version.] 
********************************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Check if we downloaded a specific version of 
Jenkins.] 
*************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Install our specific version of Jenkins.] 
**************************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Ensure Jenkins is installed.] 
**************************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Ensure dependencies are installed.] 
********************************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Add Jenkins apt repository key.] 
***********************************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Add Jenkins apt repository.] 
***************************************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Download specific Jenkins version.] 
********************************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Check if we downloaded a specific version of 
Jenkins.] 
*************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Install our specific version of Jenkins.] 
**************************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Ensure Jenkins is installed.] 
**************************************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Modify variables in init file] 
*************************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com] => (item={u'option': 
u'JENKINS_ARGS', u'value': u'--prefix='})
ok: [ggnmaster1.tb.ores.del.equant.com] => (item={u'option': 
u'JENKINS_JAVA_OPTIONS', u'value': 
u'-Djenkins.install.runSetupWizard=false'})
TASK [geerlingguy.jenkins : Set the Jenkins home directory] 
************************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Immediately restart Jenkins on init config 
changes.] 
***************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Set HTTP port in Jenkins config.] 
**********************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Ensure jenkins_home /var/lib/jenkins exists] 
***********************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Create custom init scripts directory.] 
*****************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Immediately restart Jenkins on http or user 
changes.] 
**************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Ensure Jenkins is started and runs on startup.] 
********************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Wait for Jenkins to start up before 
proceeding.] 
*******************************************************************************************
FAILED - RETRYING: Wait for Jenkins to start up before proceeding. (60 
retries left).
FAILED - RETRYING: Wait for Jenkins to start up before proceeding. (59 
retries left).
FAILED - RETRYING: Wait for Jenkins to start up before proceeding. (58 
retries left).
^CProcess WorkerProcess-38:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/multiprocessing/process.py", line 258, in 
_bootstrap
    self.run()
  File 
"/usr/lib/python2.7/site-packages/ansible/executor/process/worker.py", line 
116, in run
 [ERROR]: User interrupted execution
[root@ggnmaster2 jenkins]#


On Saturday, October 21, 2017 at 1:47:50 PM UTC+5:30, Kai Stian Olstad 
wrote:

> On 21. okt. 2017 07:45, Sawant wrote: 
> > [root@ggnmaster2 jenkins]# ls 
> > hosts  site.yml 
> > [root@ggnmaster2 jenkins]# more site.yml 
> > --- 
> > - hosts: jenkins_hosts 
> > roles: 
> > - geerlingguy.apache 
> > #- { role: "geerlingguy.apache" } 
> > [root@ggnmaster2 jenkins]# vi site.yml 
> > [root@ggnmaster2 jenkins]# ansible-playbook site.yml 
> > ERROR! Syntax Error while loading YAML. 
> > 
> > The error appears to have been in '/root/MyPlaybooks/jenkins/site.yml': 
> > line 3, column 1, but may 
> > be elsewhere in the file depending on the exact syntax problem. 
> > The offending line appears to be: 
> > - hosts: jenkins_hosts 
> > roles: 
> > ^ here 
> > [root@ggnmaster2 jenkins]# ls /etc/ansible/roles/geerlingguy.jenkins/ 
> > defaults  handlers  LICENSE  meta  README.md  tasks  templates  tests 
>  vars 
> > [root@ggnmaster2 jenkins]# more site.yml 
> > --- 
> > - hosts: jenkins_hosts 
> > roles: 
> > - { role: "geerlingguy.apache" } 
> > [root@ggnmaster2 jenkins]# ls /etc/ansible/roles/geerlingguy.apache/ 
> > defaults  handlers  LICENSE  meta  README.md  tasks  templates  tests 
>  vars 
>
> Your indentation is incorrect, indentation in YAML is very important. 
> So start by reading this to get a basic understanding of YAML 
> https://docs.ansible.com/ansible/latest/YAMLSyntax.html 
>
> Then look at the playbooks examples here to see how they are indented 
>
> https://docs.ansible.com/ansible/latest/playbooks_intro.html#playbook-language-example
>  
>
>
> -- 
> Kai Stian Olstad 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/41fd044b-23a8-4a5c-9ce9-bfe9bd0e5481%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to