Re: [ansible-project] Ansible Tower error of Deploying Dynatrace Oneagent on Windows Host | "unexpected rc from install C:\Temp\dynatrace-oneagent-windows-latest.exe: see rc, stdout and stderr for mor

2023-07-27 Thread Pradeep Reddy
Hello All,

I am looking for dynatrace oneagent ansible playbook for windows 
installation. Could someone please share the steps for installation?

Thanks,
Pradeep  

On Wednesday, 8 April 2020 at 19:05:48 UTC+5:30 Stefan Hornburg (Racke) 
wrote:

> On 4/8/20 3:33 PM, Richard Jusay wrote:
> > Hi,
> > 
> > I'm installing Dynatrace oneagent on Windows server, successfully 
> downloaded the installer but it wont continue the
> > installation because of this error.
>
> Hello Richard,
>
> please reach out to RedHat Support, this list is only for Ansible and not 
> for Tower nor AWX.
>
> Regards
> Racke
>
> > 
> > *Ansible Tower*
> > Play: dynatrace oneagent install on windows
> > Task: install:execute oneagent install file
> > Module: win_package
> > 
> > {
> > "stderr_lines": [],
> > "_ansible_no_log": false,
> > "stdout": "",
> > "changed": false,
> > "reboot_required": false,
> > "stderr": "",
> > "rc": 1602,
> > "msg": "unexpected rc from install 
> C:\Temp\dynatrace-oneagent-windows-latest.exe: see rc, stdout and stderr 
> for more
> > details",
> > "stdout_lines": []
> > }
> > 
> > *Exact Error:*
> > TASK [install: execute oneagent install file] 
> **
> > fatal: [10.250.8.179]: FAILED! => {"changed": false, "msg": "unexpected 
> rc from install
> > C:\Temp\dynatrace-oneagent-windows-latest.exe: see rc, stdout and stderr 
> for more details", "rc": 1602,
> > "reboot_required": false, "stderr": "", "stderr_lines": [], "stdout": 
> "", "stdout_lines": []}
> > 
> > 
> > 
> > *Playbook:*
> > 
> > 
> > dynatrace oneagent install on windows
> > 
> > 
> > hosts_group -> inventory group of hosts to execute playbook on
> > 
> > 
> > dt_api_endpoint -> dynatrace environment api endpoint (include trailing 
> /)
> > 
> > 
> > dt_api_token -> dynatrace api install token
> > 
> > 
> > dt_host_group: -> dynatrace host group name
> > 
> > 
> > dt_app_log_content_access: -> flag to enable or disable log analytics on 
> host (0 or 1)
> > 
> > 
> > dt_infra_only: -> flag to set cloud infrastructure monitoring mode on 
> host (0 or 1)
> > 
> > 
> > {65E3C889-BF02-4A22-9E22-5DCA88789582} v1.183.109 - live
> > 
> > 
> > {73CFAADA-499D-4B5F-A7D4-9687DDBDCAF5} v1.183.151 - practice
> > 
> > 
> 
> > 
> > *
> > 
> > 
> > *hosts: "{{ hosts_group }}"
> > vars:
> > * dt_product_id: '{65E3C889-BF02-4A22-9E22-5DCA88789582}'
> > name: "dynatrace oneagent install on windows"
> > tasks:
> > 
> > |name: "validate ansible tower execution on windows" win_stat: path: 
> C:\Temp register: temp_dir |
> > 
> > o name: "check if oneagent is already installed via windows service 
> registry key"
> > win_reg_stat:
> > path: HKLM:\SYSTEM\CurrentControlSet\Services\Dynatrace OneAgent
> > name: DisplayName
> > register: installed
> > o name: "download oneagent install file"
> > win_get_url:
> > url: "{{ dt_api_endpoint 
> }}deployment/installer/agent/windows/default/latest?Api-Token={{ 
> dt_api_token
> > }}&arch=x86&flavor=default"
> > dest: C:\Temp\dynatrace-oneagent-windows-latest.exe
> > o name: "install: execute oneagent install file"
> > win_package:
> > product_id: "{{ dt_product_id }}"
> > path: C:\Temp\dynatrace-oneagent-windows-latest.exe
> > arguments:
> > + HOST_GROUP="{{ dt_host_group }}"
> > + APP_LOG_CONTENT_ACCESS="{{ dt_app_log_content_access }}"
> > + INFRA_ONLY="{{ dt_infra_only }}"
> > state: present
> > when: installed.exists == False
> > o name: "update: validate existing oneagent product id exists"
> > win_reg_stat:
> > path: 
> "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{{ 
> dt_product_id }}"
> > name: DisplayName
> > register: uninstall
> > when: installed.exists == True
> > o name: "update: uninstall existing oneagent package"
> > win_package:
> > product_id: "{{ dt_product_id }}"
> > state: absent
> > when: installed.exists == True and uninstall.exists == True
> > o name: "update: execute oneagent install file"
> > win_package:
> > path: C:\Temp\dynatrace-oneagent-windows-latest.exe
> > product_id: "{{ dt_product_id }}"
> > arguments:
> > + HOST_GROUP="{{ dt_host_group }}"
> > + APP_LOG_CONTENT_ACCESS="{{ dt_app_log_content_access }}"
> > + INFRA_ONLY="{{ dt_infra_only }}"
> > state: present
> > when: installed.exists == True and uninstall.exists == True
> > 
> > -- 
> > 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
> > ansible-proje...@googlegroups.com  ansible-proje...@googlegroups.com>.
> > To view this discussion on the web visit
> > 
> https://groups.google.com/d/msgid/ansible-project/085b82df-bd65-406d-bb22-0efbd5bb3ec7%40googlegroups.com
> > <
> https://groups.google.com/d/msgid/ansible-project/085b82df-bd65-406d-bb22-0efbd5bb3ec7%40googlegroups.com?utm_medium=email&utm_source=footer
> >.
>
>
> -- 

Re: [ansible-project] Ansible Tower 3.8.6 - Workflow Survey - Updating choices on one question

2022-09-19 Thread glenc2...@comcast.net
Ok Thanks. I will do so.

Regards,

Glen

On Monday, September 19, 2022 at 1:42:37 AM UTC-7 dnmv...@gmail.com wrote:

> Hii
> This is the ansible list.
> Your question might get more response on the dedicated AWX list.
>
>
> On Mon, 19 Sept 2022 at 02:49, glen...@comcast.net  
> wrote:
>
>> Hello all! I have been racking my brain on how to update one field in the 
>> survey spec to one survey question. I'm unable to write the code to 
>> actually get this done while still maintaining the survey flow as is so 
>> when it's executed the questions will stay in the same place every time. Or 
>> I make some overly complex code that I begin to making this much harder 
>> that I think it should be. There are some specific requirements I'm trying 
>> to stick to:
>>
>> 1) Must be native to windows with no python on the windows system. Using 
>> only the win_uri module to send the post.
>> 2) The survey MUST keep the same flow of questions. They cannot be 
>> reordered.
>> 3) Must be written in ansible yaml. No python and no external code
>>
>> Here is the spec:
>>
>> "spec": [
>> {
>> "variable": "computer_ou",
>> "required": true,
>> "question_description": "Select Computer OU",
>> "default": "Select Computer OU",
>> "question_name": "Computer OU",
>> "type": "multiplechoice",
>> "choices": "Updated Stuff!\nSelect Computer OU"  << Option 
>> that needs updating
>> },
>> {
>> "question_description": "dsdsdsdsds",
>> "min": 0,
>> "default": "dsdsdsdsds",
>> "max": 1024,
>> "required": true,
>> "choices": "",
>> "new_question": true,
>> "variable": "dsdsdsdsds",
>> "question_name": "Sddsdsdsds",
>> "type": "text"
>> },
>> {
>> "question_description": "22",
>> "min": 0,
>> "default": "dsdsdsdsdsds",
>> "max": 1024,
>> "required": true,
>> "choices": "",
>> "new_question": true,
>> "variable": "dasasas",
>> "question_name": "Ddeddeee",
>> "type": "text"
>> },
>> {
>> "question_description": "qqqwress",
>> "min": 0,
>> "default": "45454redredewdeswdew",
>> "max": 1024,
>> "required": true,
>> "choices": "",
>> "new_question": true,
>> "variable": "aa",
>> "question_name": "234ewewewewew",
>> "type": "text"
>> }
>> ]
>>
>> The very 1st question "Select Computer OU" choices is what needs updating 
>> and no other data point in the spec. I have written code to split out the 4 
>> survey questions and have been successful in making the change in memory 
>> but putting it all back together and in the correct order was overly 
>> complex and want to go a different direction.
>>
>> And I have tried some of the modules for tower but that of course needs 
>> python the system process the request. And that system does not have python 
>> on it. So I'm basically trying to stick to the win_uri module and try and 
>> use everything that would be considered native that does not require 
>> external modules.
>>
>> If anyone has done this or can at least help progress me thru getting the 
>> data changed in the dictionary it would be helpful. I just wish the survey 
>> spec was keyed...That would make it easier to reference and change.
>>
>> Thanks.
>>
>> Glen
>>
>> -- 
>> 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 ansible-proje...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/6ad2a6c7-d65e-4dce-ba53-32d8961bee01n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/46ca82ba-b4dc-4aac-bd76-bb0a56941b49n%40googlegroups.com.


Re: [ansible-project] Ansible Tower 3.8.6 - Workflow Survey - Updating choices on one question

2022-09-19 Thread Dick Visser
Hii
This is the ansible list.
Your question might get more response on the dedicated AWX list.


On Mon, 19 Sept 2022 at 02:49, glenc2...@comcast.net 
wrote:

> Hello all! I have been racking my brain on how to update one field in the
> survey spec to one survey question. I'm unable to write the code to
> actually get this done while still maintaining the survey flow as is so
> when it's executed the questions will stay in the same place every time. Or
> I make some overly complex code that I begin to making this much harder
> that I think it should be. There are some specific requirements I'm trying
> to stick to:
>
> 1) Must be native to windows with no python on the windows system. Using
> only the win_uri module to send the post.
> 2) The survey MUST keep the same flow of questions. They cannot be
> reordered.
> 3) Must be written in ansible yaml. No python and no external code
>
> Here is the spec:
>
> "spec": [
> {
> "variable": "computer_ou",
> "required": true,
> "question_description": "Select Computer OU",
> "default": "Select Computer OU",
> "question_name": "Computer OU",
> "type": "multiplechoice",
> "choices": "Updated Stuff!\nSelect Computer OU"  << Option
> that needs updating
> },
> {
> "question_description": "dsdsdsdsds",
> "min": 0,
> "default": "dsdsdsdsds",
> "max": 1024,
> "required": true,
> "choices": "",
> "new_question": true,
> "variable": "dsdsdsdsds",
> "question_name": "Sddsdsdsds",
> "type": "text"
> },
> {
> "question_description": "22",
> "min": 0,
> "default": "dsdsdsdsdsds",
> "max": 1024,
> "required": true,
> "choices": "",
> "new_question": true,
> "variable": "dasasas",
> "question_name": "Ddeddeee",
> "type": "text"
> },
> {
> "question_description": "qqqwress",
> "min": 0,
> "default": "45454redredewdeswdew",
> "max": 1024,
> "required": true,
> "choices": "",
> "new_question": true,
> "variable": "aa",
> "question_name": "234ewewewewew",
> "type": "text"
> }
> ]
>
> The very 1st question "Select Computer OU" choices is what needs updating
> and no other data point in the spec. I have written code to split out the 4
> survey questions and have been successful in making the change in memory
> but putting it all back together and in the correct order was overly
> complex and want to go a different direction.
>
> And I have tried some of the modules for tower but that of course needs
> python the system process the request. And that system does not have python
> on it. So I'm basically trying to stick to the win_uri module and try and
> use everything that would be considered native that does not require
> external modules.
>
> If anyone has done this or can at least help progress me thru getting the
> data changed in the dictionary it would be helpful. I just wish the survey
> spec was keyed...That would make it easier to reference and change.
>
> Thanks.
>
> Glen
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/6ad2a6c7-d65e-4dce-ba53-32d8961bee01n%40googlegroups.com
> 
> .
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAF8BbLYjyZXX7LcmCh6%3D3PO3DYPR9AoBzM0e62rsm1n-EFxFDA%40mail.gmail.com.


[ansible-project] Ansible Tower 3.8.6 - Workflow Survey - Updating choices on one question

2022-09-18 Thread glenc2...@comcast.net
Hello all! I have been racking my brain on how to update one field in the 
survey spec to one survey question. I'm unable to write the code to 
actually get this done while still maintaining the survey flow as is so 
when it's executed the questions will stay in the same place every time. Or 
I make some overly complex code that I begin to making this much harder 
that I think it should be. There are some specific requirements I'm trying 
to stick to:

1) Must be native to windows with no python on the windows system. Using 
only the win_uri module to send the post.
2) The survey MUST keep the same flow of questions. They cannot be 
reordered.
3) Must be written in ansible yaml. No python and no external code

Here is the spec:

"spec": [
{
"variable": "computer_ou",
"required": true,
"question_description": "Select Computer OU",
"default": "Select Computer OU",
"question_name": "Computer OU",
"type": "multiplechoice",
"choices": "Updated Stuff!\nSelect Computer OU"  << Option that 
needs updating
},
{
"question_description": "dsdsdsdsds",
"min": 0,
"default": "dsdsdsdsds",
"max": 1024,
"required": true,
"choices": "",
"new_question": true,
"variable": "dsdsdsdsds",
"question_name": "Sddsdsdsds",
"type": "text"
},
{
"question_description": "22",
"min": 0,
"default": "dsdsdsdsdsds",
"max": 1024,
"required": true,
"choices": "",
"new_question": true,
"variable": "dasasas",
"question_name": "Ddeddeee",
"type": "text"
},
{
"question_description": "qqqwress",
"min": 0,
"default": "45454redredewdeswdew",
"max": 1024,
"required": true,
"choices": "",
"new_question": true,
"variable": "aa",
"question_name": "234ewewewewew",
"type": "text"
}
]

The very 1st question "Select Computer OU" choices is what needs updating 
and no other data point in the spec. I have written code to split out the 4 
survey questions and have been successful in making the change in memory 
but putting it all back together and in the correct order was overly 
complex and want to go a different direction.

And I have tried some of the modules for tower but that of course needs 
python the system process the request. And that system does not have python 
on it. So I'm basically trying to stick to the win_uri module and try and 
use everything that would be considered native that does not require 
external modules.

If anyone has done this or can at least help progress me thru getting the 
data changed in the dictionary it would be helpful. I just wish the survey 
spec was keyed...That would make it easier to reference and change.

Thanks.

Glen

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6ad2a6c7-d65e-4dce-ba53-32d8961bee01n%40googlegroups.com.


[ansible-project] Ansible Tower Survey

2022-07-26 Thread Christopher Bachmeyer
Morning, community, 

Does anyone know if it is possible to store a Survey in a code repo like 
Git or somehow back Surveys up more generally?  I'm just not able to find a 
lot of info on this.

Thanks! 

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/b108bfc1-576f-4b0c-9c82-7378e20663b7n%40googlegroups.com.


[ansible-project] Ansible Tower Fetch File Limit?

2022-06-07 Thread Jay Grace
I have a playbook that fetches all the files in a directory on a windows 
server to a Linux server.  There are currently 575 files but a new one gets 
added every 12 hours..

This worked perfectly during testing but when I run it from Ansible Tower 
it always gets to file 498 and then all the rest of the files received a 
checksum error.

I originally suspected winrm quotas so I tested from two other servers and 
those also worked perfectly.  The problem only seems to assert itself when 
I run it from Ansible Tower.

Any hints, tips, or suggestions are welcomed.

I also tried "validate_checksum: no" and "ignore_errors: yes" with no 
change.

I'm currently running in debug mode to see if I can learn more.

Thanks in advance from:
Jay

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/73d612d9-ce80-4e26-9503-bd8fca58de2cn%40googlegroups.com.


Re: [ansible-project] Ansible Tower Complex Scheduling

2021-07-28 Thread Donnie Larson
Thanks, I have moved that conversation over. 

On Wednesday, July 28, 2021 at 9:27:20 AM UTC-5 dick@geant.org wrote:

> No, but on the dedicated awx-project mailing list someone might do
> (this is the ansible-project list).
>
> On Wed, 28 Jul 2021 at 15:59, Donnie Larson  wrote:
> >
> > Does anyone know how to deal with schedules that are fairly complex? for 
> example 2nd Saturday after 1st Tuesday? Or we even have one that is 9 days 
> after 1st Tuesday.
> > Thanks
> >
> > --
> > 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 ansible-proje...@googlegroups.com.
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/7e4242d4-d02b-48cb-8f4c-4de5f374e1dfn%40googlegroups.com
> .
>
>
>
> -- 
> Dick Visser
> Trust & Identity Service Operations Manager
> GÉANT
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/109350b1-8216-47b5-9ace-94d728af2766n%40googlegroups.com.


Re: [ansible-project] Ansible Tower Complex Scheduling

2021-07-28 Thread Dick Visser
No, but on the dedicated awx-project mailing list someone might do
(this is the ansible-project list).

On Wed, 28 Jul 2021 at 15:59, Donnie Larson  wrote:
>
> Does anyone know how to deal with schedules that are fairly complex? for 
> example 2nd Saturday after 1st Tuesday? Or we even have one that is 9 days 
> after 1st Tuesday.
> Thanks
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/7e4242d4-d02b-48cb-8f4c-4de5f374e1dfn%40googlegroups.com.



-- 
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwPV_PG3HxgQUHw4Jom2SS9G6h3pjvSrsr25vBc34g-xRg%40mail.gmail.com.


[ansible-project] Ansible Tower Complex Scheduling

2021-07-28 Thread Donnie Larson
Does anyone know how to deal with schedules that are fairly complex? for 
example 2nd Saturday after 1st Tuesday? Or we even have one that is 9 days 
after 1st Tuesday. 
Thanks

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7e4242d4-d02b-48cb-8f4c-4de5f374e1dfn%40googlegroups.com.


Re: [ansible-project] ansible tower failed to access user information. get returned status 401

2021-05-25 Thread manoj kumar
Hey. Thanks for the response.
On Tue, 25 May 2021 at 12:27 PM, Dick Visser  wrote:

> Not really, as this list is about ansible. You might get better response
> on the dedicated awx list.
>
> On Tue, 25 May 2021 at 08:31, manoj kumar  wrote:
>
>> Hi Team, I am getting a error mentioned in $subject when I try
>> accessing/logging in to the UI.
>>
>> In tower.log I see:
>>
>> in the tower.log, I see below message awx.api.generics status 401
>> received by user AnonymousUser attempting to access /api/v2/me/ from
>> 
>>
>>
>> Any pointers?
>>
>> --
>> 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 ansible-project+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/55b71f27-6ce4-48e6-b669-46a2b5b01704n%40googlegroups.com
>> 
>> .
>>
> --
> Sent from a mobile device - please excuse the brevity, spelling and
> punctuation.
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAL8fbwMQGKhOOnH8AdPPXUpkDC7qn_6pzh4ZJ8qoy8XthpLpeA%40mail.gmail.com
> 
> .
>
-- 
Thanks and Regards
Manoj Kumar MS

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAM6HGCsQBNQhkYsPsQAXuGVXicnYjnCArEb3SJiHKgQkCX%2BDsg%40mail.gmail.com.


Re: [ansible-project] ansible tower failed to access user information. get returned status 401

2021-05-24 Thread Dick Visser
Not really, as this list is about ansible. You might get better response on
the dedicated awx list.

On Tue, 25 May 2021 at 08:31, manoj kumar  wrote:

> Hi Team, I am getting a error mentioned in $subject when I try
> accessing/logging in to the UI.
>
> In tower.log I see:
>
> in the tower.log, I see below message awx.api.generics status 401 received
> by user AnonymousUser attempting to access /api/v2/me/ from 
>
>
> Any pointers?
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/55b71f27-6ce4-48e6-b669-46a2b5b01704n%40googlegroups.com
> 
> .
>
-- 
Sent from a mobile device - please excuse the brevity, spelling and
punctuation.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwMQGKhOOnH8AdPPXUpkDC7qn_6pzh4ZJ8qoy8XthpLpeA%40mail.gmail.com.


[ansible-project] ansible tower failed to access user information. get returned status 401

2021-05-24 Thread manoj kumar
Hi Team, I am getting a error mentioned in $subject when I try 
accessing/logging in to the UI.

In tower.log I see:

in the tower.log, I see below message awx.api.generics status 401 received 
by user AnonymousUser attempting to access /api/v2/me/ from 


Any pointers? 

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/55b71f27-6ce4-48e6-b669-46a2b5b01704n%40googlegroups.com.


Re: [ansible-project] ansible tower upgrade path

2021-01-11 Thread Dick Visser
hii

this is the ansible list... you might get a better response on the
dedicated awx list...

On Mon, 11 Jan 2021 at 09:06, Jordan Bauduin  wrote:
>
> Hi there,
> I am relatively new the the Ansible community , and would like to get some 
> confirmation from more experienced people regarding upgrades . I have 
> inherited an outdated ansible deployment ( 3.3.2 ) which I would like to get 
> upgraded to the latest release .
> From the release notes of the various version , I have derived the following 
> upgrade path, but some people inside my company are telling me we have to go 
> through all the minor and major release upgrades ( about 25 ) ... So I would 
> like to hear from you guys what is the best approach and if the propose 
> upgrade path is realistic .
> Thank you for helping me out with this matter ;-)
>
> Running 3.3.2
>
> First upgrade to 3.5
> Second upgrade to 3.7
> Last upgrade to 3.8
>
> See the doc from the release notes I used to come with this upgrade path , 
> maybe I am missing something !
>
>
>
>
>
> According to upgrade guide release notes 3.8 , you have to be running at 
> least 3.6 before jumping to 3.8
>
> ð  https://docs.ansible.com/ansible-tower/3.8.0/html/upgrade-migration-guide/
>
> According to upgrade guide release notes 3.7 , you have to be running at 
> least 3.5 before jumping to 3.7
>
> ð  https://docs.ansible.com/ansible-tower/3.7.0/html/upgrade-migration-guide/
>
> According to upgrade guide release notes of 3.5 , you have to be running at 
> least 3.1 before jumping to 3.5
>
> ð  https://docs.ansible.com/ansible-tower/3.5.0/html/upgrade-migration-guide/
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/c2e8ad55-fc51-4992-80d8-9f6636ac07c9n%40googlegroups.com.



-- 
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwP_-p%3Dyd2Dbrobzcc2--JcYZuqp4pRGr2PTP%3DAtsG-X3w%40mail.gmail.com.


[ansible-project] ansible tower upgrade path

2021-01-11 Thread Jordan Bauduin
Hi there, 
I am relatively new the the Ansible community , and would like to get some 
confirmation from more experienced people regarding upgrades . I have 
inherited an outdated ansible deployment ( 3.3.2 ) which I would like to 
get upgraded to the latest release . 
>From the release notes of the various version , I have derived the 
following upgrade path, but some people inside my company are telling me we 
have to go through all the minor and major release upgrades ( about 25 ) 
... So I would like to hear from you guys what is the best approach and if 
the propose upgrade path is realistic . 
Thank you for helping me out with this matter ;-) 

Running 3.3.2 

First upgrade to 3.5
Second upgrade to 3.7 
Last upgrade to 3.8 

See the doc from the release notes I used to come with this upgrade path , 
maybe I am missing something ! 

 

 

According to upgrade guide release notes 3.8 , you have to be running at 
least 3.6 before jumping to 3.8

ð  
https://docs.ansible.com/ansible-tower/3.8.0/html/upgrade-migration-guide/

According to upgrade guide release notes 3.7 , you have to be running at 
least 3.5 before jumping to 3.7

ð  
https://docs.ansible.com/ansible-tower/3.7.0/html/upgrade-migration-guide/

According to upgrade guide release notes of 3.5 , you have to be running at 
least 3.1 before jumping to 3.5

ð  
https://docs.ansible.com/ansible-tower/3.5.0/html/upgrade-migration-guide/

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c2e8ad55-fc51-4992-80d8-9f6636ac07c9n%40googlegroups.com.


Re: [ansible-project] Ansible Tower/AWX Credential Management

2021-01-10 Thread Wei-Yen Tan
I have done this exact task before for a custom credential. We can talk over 
there

Get Outlook for iOS<https://aka.ms/o0ukef>

From: ansible-project@googlegroups.com  on 
behalf of Yantram Cloud 
Sent: Sunday, January 10, 2021 9:04:45 PM
To: ansible-project@googlegroups.com 
Subject: Re: [ansible-project] Ansible Tower/AWX Credential Management

Thanks, i will post this in the AWX group.
However, the problem is not just limited to git.
 there are scenarios where I need to access the credentials especially the 
username which is in credentials.

Thanks,
Jayant

On Sun, Jan 10, 2021 at 1:23 PM Dick Visser 
mailto:dick.vis...@geant.org>> wrote:
Hi
This is the ansible list, your question will get more/better response on the 
dedicated awx list. Give that a try.

Btw i would use public keys or tokens btw for interaction with GitHub, 
definitely not user password of the actual account.

On Sun, 10 Jan 2021 at 08:36, Yantram Cloud 
mailto:yantramcl...@gmail.com>> wrote:
All,
I am looking a way to access credentials that are setup in Ansible Tower 
credentials.
The scenario I am testing is to clone a private git repo. the way I found to 
pass the username and password are as follows.

---
- hosts: all
  gather_facts: no
  become: yes
  tasks:
- name: install git package
  apt:
name: git

- name: Get updated files from git repository
  git:
repo: "https://{{ githubuser | urlencode }}:{{ githubpassword | 
urlencode }}@github.com/privrepo.git<http://github.com/privrepo.git>"
dest: /tmp


Now in this, I want to use the githubuser and githubpassword to be passed from 
the credentials i have setup under the Credentials in Ansible Tower or a way to 
pass the credentials securely to my playbook?

Thanks,
Jayant



--
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 
ansible-project+unsubscr...@googlegroups.com<mailto:ansible-project+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4e2b5dfe-f1c7-4975-9c78-ce7d8c534cd8n%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/4e2b5dfe-f1c7-4975-9c78-ce7d8c534cd8n%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
Sent from a mobile device - please excuse the brevity, spelling and punctuation.

--
You received this message because you are subscribed to a topic in the Google 
Groups "Ansible Project" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/ansible-project/hG7wij4MVPQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
ansible-project+unsubscr...@googlegroups.com<mailto:ansible-project+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwMGMw3TttvAoQGHuu7pbpxB7QsbBU9pznQseTqn1wSvCw%40mail.gmail.com<https://groups.google.com/d/msgid/ansible-project/CAL8fbwMGMw3TttvAoQGHuu7pbpxB7QsbBU9pznQseTqn1wSvCw%40mail.gmail.com?utm_medium=email&utm_source=footer>.

--
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 
ansible-project+unsubscr...@googlegroups.com<mailto:ansible-project+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAJ4U50VP7vmvQcMvtj0N49gXOsJjpPj32qv9Tr1kUs1PM_8Qvw%40mail.gmail.com<https://groups.google.com/d/msgid/ansible-project/CAJ4U50VP7vmvQcMvtj0N49gXOsJjpPj32qv9Tr1kUs1PM_8Qvw%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/SY4PR01MB57700F1F43B480AE2FBF118AADAC0%40SY4PR01MB5770.ausprd01.prod.outlook.com.


Re: [ansible-project] Ansible Tower/AWX Credential Management

2021-01-10 Thread Yantram Cloud
Thanks, i will post this in the AWX group.
However, the problem is not just limited to git.
 there are scenarios where I need to access the credentials especially the
username which is in credentials.

Thanks,
Jayant

On Sun, Jan 10, 2021 at 1:23 PM Dick Visser  wrote:

> Hi
> This is the ansible list, your question will get more/better response on
> the dedicated awx list. Give that a try.
>
> Btw i would use public keys or tokens btw for interaction with GitHub,
> definitely not user password of the actual account.
>
> On Sun, 10 Jan 2021 at 08:36, Yantram Cloud 
> wrote:
>
>> All,
>> I am looking a way to access credentials that are setup in Ansible Tower
>> credentials.
>> The scenario I am testing is to clone a private git repo. the way I found
>> to pass the username and password are as follows.
>>
>> ---
>> - hosts: all
>>   gather_facts: no
>>   become: yes
>>   tasks:
>> - name: install git package
>>   apt:
>> name: git
>>
>> - name: Get updated files from git repository
>>   git:
>> repo: "https://{{ githubuser | urlencode }}:{{ githubpassword |
>> urlencode }}@github.com/privrepo.git"
>> dest: /tmp
>>
>>
>> Now in this, I want to use the githubuser and githubpassword to be passed
>> from the credentials i have setup under the Credentials in Ansible Tower or
>> a way to pass the credentials securely to my playbook?
>>
>> Thanks,
>> Jayant
>>
>>
>> --
>> 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 ansible-project+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/4e2b5dfe-f1c7-4975-9c78-ce7d8c534cd8n%40googlegroups.com
>> 
>> .
>>
> --
> Sent from a mobile device - please excuse the brevity, spelling and
> punctuation.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ansible-project/hG7wij4MVPQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAL8fbwMGMw3TttvAoQGHuu7pbpxB7QsbBU9pznQseTqn1wSvCw%40mail.gmail.com
> 
> .
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAJ4U50VP7vmvQcMvtj0N49gXOsJjpPj32qv9Tr1kUs1PM_8Qvw%40mail.gmail.com.


Re: [ansible-project] Ansible Tower/AWX Credential Management

2021-01-09 Thread Dick Visser
Hi
This is the ansible list, your question will get more/better response on
the dedicated awx list. Give that a try.

Btw i would use public keys or tokens btw for interaction with GitHub,
definitely not user password of the actual account.

On Sun, 10 Jan 2021 at 08:36, Yantram Cloud  wrote:

> All,
> I am looking a way to access credentials that are setup in Ansible Tower
> credentials.
> The scenario I am testing is to clone a private git repo. the way I found
> to pass the username and password are as follows.
>
> ---
> - hosts: all
>   gather_facts: no
>   become: yes
>   tasks:
> - name: install git package
>   apt:
> name: git
>
> - name: Get updated files from git repository
>   git:
> repo: "https://{{ githubuser | urlencode }}:{{ githubpassword |
> urlencode }}@github.com/privrepo.git"
> dest: /tmp
>
>
> Now in this, I want to use the githubuser and githubpassword to be passed
> from the credentials i have setup under the Credentials in Ansible Tower or
> a way to pass the credentials securely to my playbook?
>
> Thanks,
> Jayant
>
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/4e2b5dfe-f1c7-4975-9c78-ce7d8c534cd8n%40googlegroups.com
> 
> .
>
-- 
Sent from a mobile device - please excuse the brevity, spelling and
punctuation.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwMGMw3TttvAoQGHuu7pbpxB7QsbBU9pznQseTqn1wSvCw%40mail.gmail.com.


[ansible-project] Ansible Tower/AWX Credential Management

2021-01-09 Thread Yantram Cloud
All,
I am looking a way to access credentials that are setup in Ansible Tower 
credentials.
The scenario I am testing is to clone a private git repo. the way I found 
to pass the username and password are as follows.

---
- hosts: all 
  gather_facts: no
  become: yes
  tasks:
- name: install git package
  apt:
name: git

- name: Get updated files from git repository 
  git: 
repo: "https://{{ githubuser | urlencode }}:{{ githubpassword | 
urlencode }}@github.com/privrepo.git"
dest: /tmp


Now in this, I want to use the githubuser and githubpassword to be passed 
from the credentials i have setup under the Credentials in Ansible Tower or 
a way to pass the credentials securely to my playbook?

Thanks,
Jayant


-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4e2b5dfe-f1c7-4975-9c78-ce7d8c534cd8n%40googlegroups.com.


[ansible-project] Ansible Tower API - Output from Job Execution

2020-12-01 Thread Brett Quarterman
How do you output the details of the execution of all/each of the Jobs 
within a Workflow, via the Ansible Tower API?

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c001caa1-960c-4cc2-a020-861e80d26b4cn%40googlegroups.com.


Re: [ansible-project] Ansible tower issue

2020-10-11 Thread Dan Linder
I'm not trying to be snarky, but if you are truly "able to do it in the 
ansible cli with same user" then you wouldn't be receiving the error 
"rsync: change_dir \\"/opt/tibco/image\\" failed: Permission denied (13)"

If this is as urgent as your messages are implying, you need to try some of 
the suggestions that were listed above.

If this playbook is working through Tower works on a couple of other 
systems, but not this specific system, then you need to provide information 
about both systems, especially the "/opt/tibco/image" directory.  For 
instance, what user and group own the "image" directory?  Is the 
"/opt/tibco/image" actually a directory?  How do those compare to the 
systems that work?

You've given us nothing additional to work with on this error aside from 
the generic error message.  (And Googling for the error message - 'rsync: 
change_dir \"/opt/tibco/image\" failed: Permission denied (13)' - shows 
that most any time this occurs, it is due to invalid permissions to access 
that directory.)

And as "dick@geant.org" mentioned, if this is urgent and critical to 
your business, you should have a support contract with Red Hat for 
business-critical tools such as Ansible Tower.
On Saturday, October 10, 2020 at 8:16:35 AM UTC-5 shaikabdu...@gmail.com 
wrote:

> But i am able to do it in the ansible cli with same user, but facing issue 
> in the tower.
>
> Can u please help where i have missed.
>
> On Sat, Oct 10, 2020 at 5:07 PM Nick Schendel  wrote:
>
>> Looks like your issue is a permissions problem:
>>
>> change_dir \\"/opt/tibco/image\\" failed: Permission denied
>>
>>
>> I'd check permissions on that directory.  Seems like it's probably the 
>> destination directory at first glance.  Make sure the user that ansible is 
>> connecting as has permissions to write there.
>>
>> On Fri, Oct 9, 2020, 10:31 PM Abdulrazzaq shaik  
>> wrote:
>>
>>> Hi all,
>>>
>>> Kindly help on the below issue,
>>>
>>> I was trying to 2gb file from ansible controller to ansible node where 
>>> am using copy / synchronize module and my all playbooks are working fine in 
>>> the ansible cli, when it come to ansible tower am getting below error.
>>>
>>> Kindly help what could be the issue.
>>>
>>> *Error:*
>>> fatal: [ p01lap095.corp.tet.tst   ]: FAILED! => {
>>> "changed": false, 
>>> "cmd": "sshpass -d8 /usr/bin/rsync --delay-updates -F --compress 
>>> --archive --rsh=/usr/bin/ssh -S none -o StrictHostKeyChecking=no -o 
>>> UserKnownHostsFile=/dev/null --out-format=<>%i %n%L 
>>> /opt/tibco/image/binaries.tar tibco@ p01lap095.corp.tet.tst :/opt/tibco", 
>>> "invocation": {
>>> "module_args": {
>>> "_local_rsync_password": 
>>> "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", 
>>> "_local_rsync_path": "rsync", 
>>> "_substitute_controller": false, 
>>> "archive": true, 
>>> "checksum": false, 
>>> "compress": true, 
>>> "copy_links": false, 
>>> "delete": false, 
>>> "dest": "tibco@ p01lap095.corp.tet.tst  :/opt/tibco", 
>>> "dest_port": null, 
>>> "dirs": false, 
>>> "existing_only": false, 
>>> "group": null, 
>>> "link_dest": null, 
>>> "links": null, 
>>> "mode": "push", 
>>> "owner": null, 
>>> "partial": false, 
>>> "perms": null, 
>>> "private_key": null, 
>>> "recursive": null, 
>>> "rsync_opts": [], 
>>> "rsync_path": null, 
>>> "rsync_timeout": 0, 
>>> "set_remote_user": true, 
>>> "src": "/opt/tibco/image/binaries.tar", 
>>> "ssh_args": null, 
>>> "times": null, 
>>> "verify_host": false
>>> }
>>> }, 
>>> "msg": "Warning: Permanently added 
>>> 'p01lap095.corp.tet.tst,xxx.xxx.xx.xxx' (ECDSA) to the list of known 
>>> hosts.\\r\\n\\n*
>>>   
>>>  THIS SYSTEM AND ALL RELATED INFORMATION ACCESSED THEREBY IS THE PROPERTY  
>>>   
>>> *\\n\\n\\nrsync:
>>>  
>>> change_dir \\"/opt/tibco/image\\" failed: Permission denied (13)\\nrsync 
>>> error: some files/attrs were not transferred (see previous errors) (code 
>>> 23) at main.c(1179) [sender=3.1.2]\\n", 
>>> "rc": 23
>>> }
>>>
>>> -- 
>>> 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 ansible-proje...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/ansible-project/5f6db198-4094-4a68-a965-3ed8a5ec6fa9n%40googlegroups.com
>>>  
>>> 

Re: [ansible-project] Ansible tower issue

2020-10-11 Thread Dick Visser
If this is the case please use the dedicated tower support channels

On Sat, 10 Oct 2020 at 15:16, Abdulrazzaq shaik <
shaikabdulrazza...@gmail.com> wrote:

> But i am able to do it in the ansible cli with same user, but facing issue
> in the tower.
>
> Can u please help where i have missed.
>
> On Sat, Oct 10, 2020 at 5:07 PM Nick Schendel  wrote:
>
>> Looks like your issue is a permissions problem:
>>
>> change_dir \\"/opt/tibco/image\\" failed: Permission denied
>>
>>
>> I'd check permissions on that directory.  Seems like it's probably the
>> destination directory at first glance.  Make sure the user that ansible is
>> connecting as has permissions to write there.
>>
>> On Fri, Oct 9, 2020, 10:31 PM Abdulrazzaq shaik <
>> shaikabdulrazza...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> Kindly help on the below issue,
>>>
>>> I was trying to 2gb file from ansible controller to ansible node where
>>> am using copy / synchronize module and my all playbooks are working fine in
>>> the ansible cli, when it come to ansible tower am getting below error.
>>>
>>> Kindly help what could be the issue.
>>>
>>> *Error:*
>>> fatal: [ p01lap095.corp.tet.tst   ]: FAILED! => {
>>> "changed": false,
>>> "cmd": "sshpass -d8 /usr/bin/rsync --delay-updates -F --compress
>>> --archive --rsh=/usr/bin/ssh -S none -o StrictHostKeyChecking=no -o
>>> UserKnownHostsFile=/dev/null --out-format=<>%i %n%L
>>> /opt/tibco/image/binaries.tar tibco@
>>> p01lap095.corp.tet.tst :/opt/tibco",
>>> "invocation": {
>>> "module_args": {
>>> "_local_rsync_password":
>>> "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
>>> "_local_rsync_path": "rsync",
>>> "_substitute_controller": false,
>>> "archive": true,
>>> "checksum": false,
>>> "compress": true,
>>> "copy_links": false,
>>> "delete": false,
>>> "dest": "tibco@ p01lap095.corp.tet.tst  :/opt/tibco",
>>> "dest_port": null,
>>> "dirs": false,
>>> "existing_only": false,
>>> "group": null,
>>> "link_dest": null,
>>> "links": null,
>>> "mode": "push",
>>> "owner": null,
>>> "partial": false,
>>> "perms": null,
>>> "private_key": null,
>>> "recursive": null,
>>> "rsync_opts": [],
>>> "rsync_path": null,
>>> "rsync_timeout": 0,
>>> "set_remote_user": true,
>>> "src": "/opt/tibco/image/binaries.tar",
>>> "ssh_args": null,
>>> "times": null,
>>> "verify_host": false
>>> }
>>> },
>>> "msg": "Warning: Permanently added
>>> 'p01lap095.corp.tet.tst,xxx.xxx.xx.xxx' (ECDSA) to the list of known
>>> hosts.\\r\\n\\n*
>>>  THIS SYSTEM AND ALL RELATED INFORMATION ACCESSED THEREBY IS THE PROPERTY
>>>
>>> *\\n\\n\\nrsync:
>>> change_dir \\"/opt/tibco/image\\" failed: Permission denied (13)\\nrsync
>>> error: some files/attrs were not transferred (see previous errors) (code
>>> 23) at main.c(1179) [sender=3.1.2]\\n",
>>> "rc": 23
>>> }
>>>
>>> --
>>> 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 ansible-project+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/ansible-project/5f6db198-4094-4a68-a965-3ed8a5ec6fa9n%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> 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 ansible-project+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/CA%2BBXYZFM%3DEYODvzD%3DM%2ByiAXU0MfmyxKEZ%2BZyOvBbRc2Kij0xuA%40mail.gmail.com
>> 
>> .
>>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CA%2B5G-C9FproHaKg8HiyTD2xC6CMT0n0gWV9GE_mHYYRr9HOgQQ%40mail.gmail.com
> 

Re: [ansible-project] Ansible tower issue

2020-10-11 Thread Abdulrazzaq shaik
Can any one help on this ?

On Saturday, October 10, 2020 at 6:46:35 PM UTC+5:30 Abdulrazzaq shaik 
wrote:

> But i am able to do it in the ansible cli with same user, but facing issue 
> in the tower.
>
> Can u please help where i have missed.
>
> On Sat, Oct 10, 2020 at 5:07 PM Nick Schendel  wrote:
>
>> Looks like your issue is a permissions problem:
>>
>> change_dir \\"/opt/tibco/image\\" failed: Permission denied
>>
>>
>> I'd check permissions on that directory.  Seems like it's probably the 
>> destination directory at first glance.  Make sure the user that ansible is 
>> connecting as has permissions to write there.
>>
>> On Fri, Oct 9, 2020, 10:31 PM Abdulrazzaq shaik  
>> wrote:
>>
>>> Hi all,
>>>
>>> Kindly help on the below issue,
>>>
>>> I was trying to 2gb file from ansible controller to ansible node where 
>>> am using copy / synchronize module and my all playbooks are working fine in 
>>> the ansible cli, when it come to ansible tower am getting below error.
>>>
>>> Kindly help what could be the issue.
>>>
>>> *Error:*
>>> fatal: [ p01lap095.corp.tet.tst   ]: FAILED! => {
>>> "changed": false, 
>>> "cmd": "sshpass -d8 /usr/bin/rsync --delay-updates -F --compress 
>>> --archive --rsh=/usr/bin/ssh -S none -o StrictHostKeyChecking=no -o 
>>> UserKnownHostsFile=/dev/null --out-format=<>%i %n%L 
>>> /opt/tibco/image/binaries.tar tibco@ p01lap095.corp.tet.tst :/opt/tibco", 
>>> "invocation": {
>>> "module_args": {
>>> "_local_rsync_password": 
>>> "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", 
>>> "_local_rsync_path": "rsync", 
>>> "_substitute_controller": false, 
>>> "archive": true, 
>>> "checksum": false, 
>>> "compress": true, 
>>> "copy_links": false, 
>>> "delete": false, 
>>> "dest": "tibco@ p01lap095.corp.tet.tst  :/opt/tibco", 
>>> "dest_port": null, 
>>> "dirs": false, 
>>> "existing_only": false, 
>>> "group": null, 
>>> "link_dest": null, 
>>> "links": null, 
>>> "mode": "push", 
>>> "owner": null, 
>>> "partial": false, 
>>> "perms": null, 
>>> "private_key": null, 
>>> "recursive": null, 
>>> "rsync_opts": [], 
>>> "rsync_path": null, 
>>> "rsync_timeout": 0, 
>>> "set_remote_user": true, 
>>> "src": "/opt/tibco/image/binaries.tar", 
>>> "ssh_args": null, 
>>> "times": null, 
>>> "verify_host": false
>>> }
>>> }, 
>>> "msg": "Warning: Permanently added 
>>> 'p01lap095.corp.tet.tst,xxx.xxx.xx.xxx' (ECDSA) to the list of known 
>>> hosts.\\r\\n\\n*
>>>   
>>>  THIS SYSTEM AND ALL RELATED INFORMATION ACCESSED THEREBY IS THE PROPERTY  
>>>   
>>> *\\n\\n\\nrsync:
>>>  
>>> change_dir \\"/opt/tibco/image\\" failed: Permission denied (13)\\nrsync 
>>> error: some files/attrs were not transferred (see previous errors) (code 
>>> 23) at main.c(1179) [sender=3.1.2]\\n", 
>>> "rc": 23
>>> }
>>>
>>> -- 
>>> 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 ansible-proje...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/ansible-project/5f6db198-4094-4a68-a965-3ed8a5ec6fa9n%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>> -- 
>> 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 ansible-proje...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/CA%2BBXYZFM%3DEYODvzD%3DM%2ByiAXU0MfmyxKEZ%2BZyOvBbRc2Kij0xuA%40mail.gmail.com
>>  
>> 
>> .
>>
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/208eef45-9d57-45b1-a94c-0942bae630bdn%40googlegroups.com.


Re: [ansible-project] Ansible tower issue

2020-10-10 Thread Abdulrazzaq shaik
But i am able to do it in the ansible cli with same user, but facing issue
in the tower.

Can u please help where i have missed.

On Sat, Oct 10, 2020 at 5:07 PM Nick Schendel  wrote:

> Looks like your issue is a permissions problem:
>
> change_dir \\"/opt/tibco/image\\" failed: Permission denied
>
>
> I'd check permissions on that directory.  Seems like it's probably the
> destination directory at first glance.  Make sure the user that ansible is
> connecting as has permissions to write there.
>
> On Fri, Oct 9, 2020, 10:31 PM Abdulrazzaq shaik <
> shaikabdulrazza...@gmail.com> wrote:
>
>> Hi all,
>>
>> Kindly help on the below issue,
>>
>> I was trying to 2gb file from ansible controller to ansible node where am
>> using copy / synchronize module and my all playbooks are working fine in
>> the ansible cli, when it come to ansible tower am getting below error.
>>
>> Kindly help what could be the issue.
>>
>> *Error:*
>> fatal: [ p01lap095.corp.tet.tst   ]: FAILED! => {
>> "changed": false,
>> "cmd": "sshpass -d8 /usr/bin/rsync --delay-updates -F --compress
>> --archive --rsh=/usr/bin/ssh -S none -o StrictHostKeyChecking=no -o
>> UserKnownHostsFile=/dev/null --out-format=<>%i %n%L
>> /opt/tibco/image/binaries.tar tibco@
>> p01lap095.corp.tet.tst :/opt/tibco",
>> "invocation": {
>> "module_args": {
>> "_local_rsync_password":
>> "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
>> "_local_rsync_path": "rsync",
>> "_substitute_controller": false,
>> "archive": true,
>> "checksum": false,
>> "compress": true,
>> "copy_links": false,
>> "delete": false,
>> "dest": "tibco@ p01lap095.corp.tet.tst  :/opt/tibco",
>> "dest_port": null,
>> "dirs": false,
>> "existing_only": false,
>> "group": null,
>> "link_dest": null,
>> "links": null,
>> "mode": "push",
>> "owner": null,
>> "partial": false,
>> "perms": null,
>> "private_key": null,
>> "recursive": null,
>> "rsync_opts": [],
>> "rsync_path": null,
>> "rsync_timeout": 0,
>> "set_remote_user": true,
>> "src": "/opt/tibco/image/binaries.tar",
>> "ssh_args": null,
>> "times": null,
>> "verify_host": false
>> }
>> },
>> "msg": "Warning: Permanently added
>> 'p01lap095.corp.tet.tst,xxx.xxx.xx.xxx' (ECDSA) to the list of known
>> hosts.\\r\\n\\n*
>>  THIS SYSTEM AND ALL RELATED INFORMATION ACCESSED THEREBY IS THE PROPERTY
>>
>> *\\n\\n\\nrsync:
>> change_dir \\"/opt/tibco/image\\" failed: Permission denied (13)\\nrsync
>> error: some files/attrs were not transferred (see previous errors) (code
>> 23) at main.c(1179) [sender=3.1.2]\\n",
>> "rc": 23
>> }
>>
>> --
>> 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 ansible-project+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/5f6db198-4094-4a68-a965-3ed8a5ec6fa9n%40googlegroups.com
>> 
>> .
>>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CA%2BBXYZFM%3DEYODvzD%3DM%2ByiAXU0MfmyxKEZ%2BZyOvBbRc2Kij0xuA%40mail.gmail.com
> 
> .
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2B5G-C9FproHaKg8HiyTD2xC6CMT0n0gWV9GE_mHYYRr9HOgQQ%40mail.gmail.com.


Re: [ansible-project] Ansible tower issue

2020-10-10 Thread Nick Schendel
Looks like your issue is a permissions problem:

change_dir \\"/opt/tibco/image\\" failed: Permission denied


I'd check permissions on that directory.  Seems like it's probably the
destination directory at first glance.  Make sure the user that ansible is
connecting as has permissions to write there.

On Fri, Oct 9, 2020, 10:31 PM Abdulrazzaq shaik <
shaikabdulrazza...@gmail.com> wrote:

> Hi all,
>
> Kindly help on the below issue,
>
> I was trying to 2gb file from ansible controller to ansible node where am
> using copy / synchronize module and my all playbooks are working fine in
> the ansible cli, when it come to ansible tower am getting below error.
>
> Kindly help what could be the issue.
>
> *Error:*
> fatal: [ p01lap095.corp.tet.tst   ]: FAILED! => {
> "changed": false,
> "cmd": "sshpass -d8 /usr/bin/rsync --delay-updates -F --compress
> --archive --rsh=/usr/bin/ssh -S none -o StrictHostKeyChecking=no -o
> UserKnownHostsFile=/dev/null --out-format=<>%i %n%L
> /opt/tibco/image/binaries.tar tibco@ p01lap095.corp.tet.tst :/opt/tibco",
> "invocation": {
> "module_args": {
> "_local_rsync_password":
> "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
> "_local_rsync_path": "rsync",
> "_substitute_controller": false,
> "archive": true,
> "checksum": false,
> "compress": true,
> "copy_links": false,
> "delete": false,
> "dest": "tibco@ p01lap095.corp.tet.tst  :/opt/tibco",
> "dest_port": null,
> "dirs": false,
> "existing_only": false,
> "group": null,
> "link_dest": null,
> "links": null,
> "mode": "push",
> "owner": null,
> "partial": false,
> "perms": null,
> "private_key": null,
> "recursive": null,
> "rsync_opts": [],
> "rsync_path": null,
> "rsync_timeout": 0,
> "set_remote_user": true,
> "src": "/opt/tibco/image/binaries.tar",
> "ssh_args": null,
> "times": null,
> "verify_host": false
> }
> },
> "msg": "Warning: Permanently added
> 'p01lap095.corp.tet.tst,xxx.xxx.xx.xxx' (ECDSA) to the list of known
> hosts.\\r\\n\\n*
>  THIS SYSTEM AND ALL RELATED INFORMATION ACCESSED THEREBY IS THE PROPERTY
>
> *\\n\\n\\nrsync:
> change_dir \\"/opt/tibco/image\\" failed: Permission denied (13)\\nrsync
> error: some files/attrs were not transferred (see previous errors) (code
> 23) at main.c(1179) [sender=3.1.2]\\n",
> "rc": 23
> }
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/5f6db198-4094-4a68-a965-3ed8a5ec6fa9n%40googlegroups.com
> 
> .
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2BBXYZFM%3DEYODvzD%3DM%2ByiAXU0MfmyxKEZ%2BZyOvBbRc2Kij0xuA%40mail.gmail.com.


[ansible-project] Ansible tower issue

2020-10-09 Thread Abdulrazzaq shaik
Hi all,

Kindly help on the below issue,

I was trying to 2gb file from ansible controller to ansible node where am 
using copy / synchronize module and my all playbooks are working fine in 
the ansible cli, when it come to ansible tower am getting below error.

Kindly help what could be the issue.

*Error:*
fatal: [ p01lap095.corp.tet.tst   ]: FAILED! => {
"changed": false, 
"cmd": "sshpass -d8 /usr/bin/rsync --delay-updates -F --compress 
--archive --rsh=/usr/bin/ssh -S none -o StrictHostKeyChecking=no -o 
UserKnownHostsFile=/dev/null --out-format=<>%i %n%L 
/opt/tibco/image/binaries.tar tibco@ p01lap095.corp.tet.tst :/opt/tibco", 
"invocation": {
"module_args": {
"_local_rsync_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", 
"_local_rsync_path": "rsync", 
"_substitute_controller": false, 
"archive": true, 
"checksum": false, 
"compress": true, 
"copy_links": false, 
"delete": false, 
"dest": "tibco@ p01lap095.corp.tet.tst  :/opt/tibco", 
"dest_port": null, 
"dirs": false, 
"existing_only": false, 
"group": null, 
"link_dest": null, 
"links": null, 
"mode": "push", 
"owner": null, 
"partial": false, 
"perms": null, 
"private_key": null, 
"recursive": null, 
"rsync_opts": [], 
"rsync_path": null, 
"rsync_timeout": 0, 
"set_remote_user": true, 
"src": "/opt/tibco/image/binaries.tar", 
"ssh_args": null, 
"times": null, 
"verify_host": false
}
}, 
"msg": "Warning: Permanently added 
'p01lap095.corp.tet.tst,xxx.xxx.xx.xxx' (ECDSA) to the list of known 
hosts.\\r\\n\\n*
  
 THIS SYSTEM AND ALL RELATED INFORMATION ACCESSED THEREBY IS THE PROPERTY  
  
*\\n\\n\\nrsync:
 
change_dir \\"/opt/tibco/image\\" failed: Permission denied (13)\\nrsync 
error: some files/attrs were not transferred (see previous errors) (code 
23) at main.c(1179) [sender=3.1.2]\\n", 
"rc": 23
}

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5f6db198-4094-4a68-a965-3ed8a5ec6fa9n%40googlegroups.com.


[ansible-project] Ansible tower process

2020-09-09 Thread Abdulrazzaq shaik
Hi All,

I want to integrate my current ansible core to ansible tower, Please help 
on sharing process to do or any link.

Thanks in advance, kindly help.

Regards
Abdul Razzaq

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/81ca1c11-e388-4b04-8ee6-dd1cd0ed8644n%40googlegroups.com.


[ansible-project] Ansible tower webhook notification

2020-06-25 Thread 'Jam Volkov' via Ansible Project
Hi All,

I'm testing a webhook notification from Ansible tower, it works good
Received data example:

{"id": 14, "name": "job_test", "url": 
"https://ansibletower/#/jobs/playbook/14";, "created_by": "admin", 
"started": "2020-06-25T09:14:13.804517+00:00", "finished": null, "status": 
"running", "traceback": "", "inventory": "inv", "project": "test", 
"playbook": "hello_world.yml", "credential": null, "limit": "", 
"extra_vars": "{}", "hosts": {}}

Question: Can I put information from playbook (ex. hello_world.yml) into 
json body of the notification(example above)? (I tried to customize the 
json body but it doesn't work)

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5a7cdd44-f7e9-4a9c-9dba-af646bc181deo%40googlegroups.com.


Re: [ansible-project] ansible tower - command works BUT playbook fails to connect to the host via ssh

2020-06-12 Thread Thanh Nguyen Duc
Try to run with sudo?

Sent from my iPhone

> On Jun 12, 2020, at 23:55, Stefan Hornburg (Racke)  wrote:
> 
> On 6/12/20 5:31 PM, Laci wrote:
>> In my ansible tower I can execute a command successfully on a remote server, 
>> however when I try to run a playbook I get:
>> 
>> {
>> "msg": "Failed to connect to the host via ssh: Warning: Permanently 
>> added 'hostname,10.1.4.66' (ECDSA) to the list
>> of known hosts.\r\nPermission denied 
>> (publickey,gssapi-keyex,gssapi-with-mic,keyboard-interactive).",
>> "unreachable": true,
>> "changed": false
>> }
>> 
>> Seems to be a weird issue, did someone saw and solved this before?
> 
> This group is dedicated to Ansible itself, not Tower or AWX.
> 
> Please contact RedHat support.
> 
> Regards
>Racke
> 
>> 
>> -- 
>> 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
>> ansible-project+unsubscr...@googlegroups.com 
>> .
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/7ea6e452-bd00-408f-a1eb-36378bff57deo%40googlegroups.com
>> .
> 
> 
> -- 
> Ecommerce and Linux consulting + Perl and web application programming.
> Debian and Sympa administration. Provisioning with Ansible.
> 
> -- 
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/b6428221-639a-5a9e-f0d2-506515df0792%40linuxia.de.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6558A5DB-373C-4747-A220-1D5A020CDB63%40gmail.com.


Re: [ansible-project] ansible tower - command works BUT playbook fails to connect to the host via ssh

2020-06-12 Thread Stefan Hornburg (Racke)
On 6/12/20 5:31 PM, Laci wrote:
> In my ansible tower I can execute a command successfully on a remote server, 
> however when I try to run a playbook I get:
> 
> {
>     "msg": "Failed to connect to the host via ssh: Warning: Permanently added 
> 'hostname,10.1.4.66' (ECDSA) to the list
> of known hosts.\r\nPermission denied 
> (publickey,gssapi-keyex,gssapi-with-mic,keyboard-interactive).",
>     "unreachable": true,
>     "changed": false
> }
> 
> Seems to be a weird issue, did someone saw and solved this before?

This group is dedicated to Ansible itself, not Tower or AWX.

Please contact RedHat support.

Regards
Racke

> 
> -- 
> 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
> ansible-project+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/7ea6e452-bd00-408f-a1eb-36378bff57deo%40googlegroups.com
> .


-- 
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/b6428221-639a-5a9e-f0d2-506515df0792%40linuxia.de.


signature.asc
Description: OpenPGP digital signature


[ansible-project] ansible tower - command works BUT playbook fails to connect to the host via ssh

2020-06-12 Thread Laci
In my ansible tower I can execute a command successfully on a remote 
server, however when I try to run a playbook I get:

{
"msg": "Failed to connect to the host via ssh: Warning: Permanently 
added 'hostname,10.1.4.66' (ECDSA) to the list of known 
hosts.\r\nPermission denied 
(publickey,gssapi-keyex,gssapi-with-mic,keyboard-interactive).",
"unreachable": true,
"changed": false
}

Seems to be a weird issue, did someone saw and solved this before?

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7ea6e452-bd00-408f-a1eb-36378bff57deo%40googlegroups.com.


[ansible-project] Ansible Tower - user awx permission

2020-06-09 Thread mcubes cloud
Hi team,

I have created a ansible-tower and calling a job in local host and facing awx 
user permission issues and showing error as below,

{
"msg": "privilege output closed while waiting for password prompt:\nsudo: 
effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' 
option set or an NFS file system without root privileges?\n",
"_ansible_no_log": false
}

Pls help on this,

(Note. The same job is running smoothly under root)

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/3e5bd051-4290-4c69-8006-f016bc906e2co%40googlegroups.com.


Re: [ansible-project] Ansible Tower: Passing extra variables from one workflow template to other

2020-04-28 Thread Stefan Hornburg (Racke)
On 4/27/20 3:52 PM, Kaliyug Antagonist wrote:
> *Ansible 2.9.2*
> *Tower 3.6.1*
> *

Hello Kaliyug,

Tower is not a subject of this list, only Ansible itself.

Please contact RedHat support.

Regards
 Racke

> *
> There are two Bitbucket repositories viz. *bitbucketconfigurator* and 
> *sonarconfigurator* which contain playbooks to
> configure Bitbucket and Sonarqube projects, respectively. Here, showing just 
> the bitbucketConfigurator*:*
> *
> *
> 
> bitbucketconfigurator-playbooks.png
> 
> 
> *
> *
> In the above project, there is a ***group_vars/all yaml** *file as 
> follows*(note the entry bitbucket_token: "{{
> PAT_admin_admin }}"):*
> *
> *
> |
>     # Defaults used for branch access and restrictions
>     # Global vars used for rest api
>     bitbucket_base_url:'https://git.net'
>     bitbucket_rest_base_endpoint:'rest/api/1.0/projects'
>     bitbucket_rest_url:"{{ bitbucket_base_url }}/{{ 
> bitbucket_rest_base_endpoint }}"
>     bitbucket_branch_rest_endpoint:"rest/branch-permissions/2.0/projects"
>     bitbucket_branching_url:"{{ bitbucket_base_url 
> }}/rest/branch-utils/1.0/projects"
>     sonar_for_bitbucket_base_endpoint:'rest/sonar4stash/1.0/projects'
>     bitbucket_token:"{{ PAT_admin_admin }}"
>     bitbucket_rest_api_latest:'rest/api/latest'
>     bitbucket_project_name_lc:"{{ bitbucket.project.name  | lower }}"
>     bitbucket_repository_name_lc:"{{ bitbucket.project.repository.name  | 
> lower }}"
> |
> *
> *
> *
> *
> The list of *job templates*, an example is shown further, below:
> 
> job-templates-corresponding-to-playbooks.png
> 
> 
> *
> *
> *
> *
> As an example, let's consider the *bb_configure *job template I am using 
> 'Extra Variables' to pass a yml file/dictionary
> e.g:
> 
> extra-vars-passed-to-job-templates.png
> 
> 
> *
> *
> *
> *
> Here is the list of all the workflow templates, I will summarize their usage 
> subsequently:
> 
> work-flow-templates.png
> 
> 
> *
> *
> *
> *
> I tested the bitbucketconfigurator playbooks in a single workflow viz. 
> wt-bitbucket. It runs successfully. *Note that it
> uses no-arg versions of the individual playbooks i.e the config yaml file is 
> passed to the wt-bitbucket and NOT the
> individual playbooks.*
> 
> workflow-template-bitbucket.png
> 
> 
> *
> *
> *
> *
> In the above workflow template, the extra vars are used:
> 
> workflow-template-extra-vars.png
> 
> 
> *
> *
> *
> *
> Now, I am using the *wk_onboarding_pipeline as a 'master' workflow template* 
> which invokes the no-arg versions of the
> workflow templates:
> *
> *
> 
> master-workflow-template.png
> 
> *
> *
> *
> *
> *
> *
> This 'master' template now has the config yaml file, also, note the entry 
> *PAT_admin_admin:*
> 
> master-workflow-template-extra-vars.png
> 
> 
> *
> *
> *
> *
> *Issue:*
> When I run this 'master' template, the first playbook of the first workflow 
> template fails as it is *unable to access
> the 'PAT_admin_admin' passed in the extra vars.*
> *
> *
> 
> error-master-template.png
> 
> 
> 
> Am I making a mistake in the invocation or have I incorrectly configured the 
> workflow templates within a workflow template?
> 
> -- 
> 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
> ansible-project+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/7e96426e-1592-4775-a3dd-5b2053e073fa%40googlegroups.com
> .


-- 
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9c9d1603-cdf6-b6f4-6890-8b82ccbc3240%40linuxia.de.


signature.asc
Description: OpenPGP digital signature


Re: [ansible-project] Ansible Tower error of Deploying Dynatrace Oneagent on Windows Host | "unexpected rc from install C:\Temp\dynatrace-oneagent-windows-latest.exe: see rc, stdout and stderr for mor

2020-04-08 Thread Stefan Hornburg (Racke)
On 4/8/20 3:33 PM, Richard Jusay wrote:
> Hi,
> 
> I'm installing Dynatrace oneagent on Windows server, successfully downloaded 
> the installer but it wont continue the
> installation because of this error.

Hello Richard,

please reach out to RedHat Support, this list is only for Ansible and not for 
Tower nor AWX.

Regards
 Racke

> 
> *Ansible Tower*
> Play: dynatrace oneagent install on windows
> Task: install:execute oneagent install file
> Module: win_package
> 
> {
> "stderr_lines": [],
> "_ansible_no_log": false,
> "stdout": "",
> "changed": false,
> "reboot_required": false,
> "stderr": "",
> "rc": 1602,
> "msg": "unexpected rc from install 
> C:\Temp\dynatrace-oneagent-windows-latest.exe: see rc, stdout and stderr for 
> more
> details",
> "stdout_lines": []
> }
> 
> *Exact Error:*
> TASK [install: execute oneagent install file] 
> **
> fatal: [10.250.8.179]: FAILED! => {"changed": false, "msg": "unexpected rc 
> from install
> C:\Temp\dynatrace-oneagent-windows-latest.exe: see rc, stdout and stderr for 
> more details", "rc": 1602,
> "reboot_required": false, "stderr": "", "stderr_lines": [], "stdout": "", 
> "stdout_lines": []}
> 
> 
> 
> *Playbook:*
> 
> 
>   dynatrace oneagent install on windows
> 
> 
>   hosts_group -> inventory group of hosts to execute playbook on
> 
> 
>   dt_api_endpoint -> dynatrace environment api endpoint (include trailing /)
> 
> 
>   dt_api_token -> dynatrace api install token
> 
> 
>   dt_host_group: -> dynatrace host group name
> 
> 
>   dt_app_log_content_access: -> flag to enable or disable log analytics on 
> host (0 or 1)
> 
> 
>   dt_infra_only: -> flag to set cloud infrastructure monitoring mode on host 
> (0 or 1)
> 
> 
>   {65E3C889-BF02-4A22-9E22-5DCA88789582} v1.183.109 - live
> 
> 
>   {73CFAADA-499D-4B5F-A7D4-9687DDBDCAF5} v1.183.151 - practice
> 
> 
> 
>   *
> 
> 
> *hosts: "{{ hosts_group }}"
> vars:
> * dt_product_id: '{65E3C889-BF02-4A22-9E22-5DCA88789582}'
> name: "dynatrace oneagent install on windows"
> tasks:
> 
> |name: "validate ansible tower execution on windows" win_stat: path: 
> C:\Temp register: temp_dir |
> 
>   o name: "check if oneagent is already installed via windows service 
> registry key"
> win_reg_stat:
> path: HKLM:\SYSTEM\CurrentControlSet\Services\Dynatrace OneAgent
> name: DisplayName
> register: installed
>   o name: "download oneagent install file"
> win_get_url:
> url: "{{ dt_api_endpoint 
> }}deployment/installer/agent/windows/default/latest?Api-Token={{ dt_api_token
> }}&arch=x86&flavor=default"
> dest: C:\Temp\dynatrace-oneagent-windows-latest.exe
>   o name: "install: execute oneagent install file"
> win_package:
> product_id: "{{ dt_product_id }}"
> path: C:\Temp\dynatrace-oneagent-windows-latest.exe
> arguments:
>   + HOST_GROUP="{{ dt_host_group }}"
>   + APP_LOG_CONTENT_ACCESS="{{ dt_app_log_content_access }}"
>   + INFRA_ONLY="{{ dt_infra_only }}"
> state: present
> when: installed.exists == False
>   o name: "update: validate existing oneagent product id exists"
> win_reg_stat:
> path: 
> "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{{ 
> dt_product_id }}"
> name: DisplayName
> register: uninstall
> when: installed.exists == True
>   o name: "update: uninstall existing oneagent package"
> win_package:
> product_id: "{{ dt_product_id }}"
> state: absent
> when: installed.exists == True and uninstall.exists == True
>   o name: "update: execute oneagent install file"
> win_package:
> path: C:\Temp\dynatrace-oneagent-windows-latest.exe
> product_id: "{{ dt_product_id }}"
> arguments:
>   + HOST_GROUP="{{ dt_host_group }}"
>   + APP_LOG_CONTENT_ACCESS="{{ dt_app_log_content_access }}"
>   + INFRA_ONLY="{{ dt_infra_only }}"
> state: present
> when: installed.exists == True and uninstall.exists == True
> 
> -- 
> 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
> ansible-project+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/085b82df-bd65-406d-bb22-0efbd5bb3ec7%40googlegroups.com
> .


-- 
Ecommerce and Linux consulting + Perl and web application programming.
Debian an

[ansible-project] Ansible Tower error of Deploying Dynatrace Oneagent on Windows Host | "unexpected rc from install C:\Temp\dynatrace-oneagent-windows-latest.exe: see rc, stdout and stderr for more de

2020-04-08 Thread Richard Jusay


Hi,

I'm installing Dynatrace oneagent on Windows server, successfully 
downloaded the installer but it wont continue the installation because of 
this error.

*Ansible Tower*
Play: dynatrace oneagent install on windows
Task: install:execute oneagent install file
Module: win_package

{
"stderr_lines": [],
"_ansible_no_log": false,
"stdout": "",
"changed": false,
"reboot_required": false,
"stderr": "",
"rc": 1602,
"msg": "unexpected rc from install 
C:\Temp\dynatrace-oneagent-windows-latest.exe: see rc, stdout and stderr 
for more details",
"stdout_lines": []
}

*Exact Error:*
TASK [install: execute oneagent install file] 
**
fatal: [10.250.8.179]: FAILED! => {"changed": false, "msg": "unexpected rc 
from install C:\Temp\dynatrace-oneagent-windows-latest.exe: see rc, stdout 
and stderr for more details", "rc": 1602, "reboot_required": false, 
"stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}



*Playbook:*
dynatrace oneagent install on windows hosts_group -> inventory group of 
hosts to execute playbook on dt_api_endpoint -> dynatrace environment api 
endpoint (include trailing /) dt_api_token -> dynatrace api install token 
dt_host_group: 
-> dynatrace host group name dt_app_log_content_access: -> flag to enable 
or disable log analytics on host (0 or 1) dt_infra_only: -> flag to set 
cloud infrastructure monitoring mode on host (0 or 1) 
{65E3C889-BF02-4A22-9E22-5DCA88789582} 
v1.183.109 - live {73CFAADA-499D-4B5F-A7D4-9687DDBDCAF5} v1.183.151 - 
practice 
--

   - 

*hosts: "{{ hosts_group }}" vars: * dt_product_id: 
   '{65E3C889-BF02-4A22-9E22-5DCA88789582}'
   name: "dynatrace oneagent install on windows"
   tasks: 
   
   name: "validate ansible tower execution on windows"win_stat:  path: 
C:\Tempregister: temp_dir
   
   - name: "check if oneagent is already installed via windows service 
  registry key"
  win_reg_stat:
  path: HKLM:\SYSTEM\CurrentControlSet\Services\Dynatrace OneAgent
  name: DisplayName
  register: installed 
  - name: "download oneagent install file"
  win_get_url:
  url: "{{ dt_api_endpoint 
  }}deployment/installer/agent/windows/default/latest?Api-Token={{ 
  dt_api_token }}&arch=x86&flavor=default"
  dest: C:\Temp\dynatrace-oneagent-windows-latest.exe 
  - name: "install: execute oneagent install file"
  win_package:
  product_id: "{{ dt_product_id }}"
  path: C:\Temp\dynatrace-oneagent-windows-latest.exe
  arguments: 
 - HOST_GROUP="{{ dt_host_group }}" 
 - APP_LOG_CONTENT_ACCESS="{{ dt_app_log_content_access }}" 
 - INFRA_ONLY="{{ dt_infra_only }}"
 state: present
 when: installed.exists == False 
  - name: "update: validate existing oneagent product id exists"
  win_reg_stat:
  path: 
  "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{{ 
  dt_product_id }}"
  name: DisplayName
  register: uninstall
  when: installed.exists == True 
  - name: "update: uninstall existing oneagent package"
  win_package:
  product_id: "{{ dt_product_id }}"
  state: absent
  when: installed.exists == True and uninstall.exists == True 
  - name: "update: execute oneagent install file"
  win_package:
  path: C:\Temp\dynatrace-oneagent-windows-latest.exe
  product_id: "{{ dt_product_id }}"
  arguments: 
 - HOST_GROUP="{{ dt_host_group }}" 
 - APP_LOG_CONTENT_ACCESS="{{ dt_app_log_content_access }}" 
 - INFRA_ONLY="{{ dt_infra_only }}"
 state: present
 when: installed.exists == True and uninstall.exists == True
  

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/085b82df-bd65-406d-bb22-0efbd5bb3ec7%40googlegroups.com.


Re: [ansible-project] Ansible Tower and Facts

2020-02-01 Thread Kai Stian Olstad

On 01.02.2020 08:42, Glen Collins wrote:

It does set the fact in tower.


This list is for Ansible and not Tower, please contact RedHat for 
support on Tower.


--
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5326ac878735aeef90f40bdbaa04207e%40olstad.com.


Re: [ansible-project] Ansible Tower and Facts

2020-01-31 Thread Glen Collins
It does set the fact in tower. When I review the host in the inventory and 
click on the facts, they show up as set. If this is supposed to not work 
because of the invalid host, it could be a bug. But for me (using tower 
3.5.4) it's working.

Regards,

Glen

On Friday, January 31, 2020 at 10:30:04 PM UTC-8, Vladimir Botka wrote:
>
> On Fri, 31 Jan 2020 20:14:51 -0800 (PST) 
> Glen Collins > wrote: 
>
> > - name: Set facts 
> >   set_fact: 
> >dummy_fact: "Hello world" 
> >cacheable: yes 
> >   delegate_to: fake_host 
> >   delegate_facts: true 
> > 
> > This sets the fact in the hostname fake_host just fine. 
> > [...] 
> > I have tried to target the playbook using host: fake_host but the 
> playbook 
> > run tells me the host is invalid or something to that effect. 
>
> This *can't* set the fact in the hostname fake_host just fine if the host 
> in not valid. The play 
>
>   - hosts: all 
> tasks: 
>   - set_fact: 
>   dummy_fact: "Hello world" 
>   cacheable: yes 
> delegate_to: fake_host 
> delegate_facts: true 
> run_once: true 
>   - debug: 
>   var: hostvars.fake_host.ansible_facts 
> run_once: true 
>
>
> should report 
>
> "hostvars.fake_host.ansible_facts": "VARIABLE IS NOT DEFINED!" 
>
> > Can someone tell me if this is even possible to do? Possible to target 
> > directly? 
>
> If the host is valid. All works as expected. For example, the playbook 
>   
>   - hosts: all 
> tasks: 
>   - set_fact: 
>   dummy_fact: "Hello world" 
>   cacheable: yes 
> delegate_to: test_01 
> delegate_facts: true 
> run_once: true 
>   - debug: 
>   var: hostvars.test_01.ansible_facts 
> run_once: true 
>
>   - hosts: test_01 
> tasks: 
>   - debug: 
>   var: hostvars.test_01.ansible_facts 
>   - meta: clear_facts 
>   - debug: 
>   var: hostvars.test_01.ansible_facts 
>
> gives 
>
>   PLAY [all] 
>   ok: [test_01] => { 
> "hostvars.test_01.ansible_facts": { 
> "dummy_fact": "Hello world" 
> } 
>   } 
>
>   PLAY [test_01] 
>   ok: [test_01] => { 
> "hostvars.test_01.ansible_facts": { 
> "dummy_fact": "Hello world" 
> } 
>   } 
>   ok: [test_01] => { 
> "hostvars.test_01.ansible_facts": {} 
>   } 
>
> To make it reproducible test it without tower. HTH, 
>
> -vlado 
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/b643721a-2dca-4a41-8bff-6acc0b817c52%40googlegroups.com.


Re: [ansible-project] Ansible Tower and Facts

2020-01-31 Thread Vladimir Botka
On Fri, 31 Jan 2020 20:14:51 -0800 (PST)
Glen Collins  wrote:

> - name: Set facts
>   set_fact:
>dummy_fact: "Hello world"
>cacheable: yes
>   delegate_to: fake_host
>   delegate_facts: true
> 
> This sets the fact in the hostname fake_host just fine.
> [...]
> I have tried to target the playbook using host: fake_host but the playbook 
> run tells me the host is invalid or something to that effect.

This *can't* set the fact in the hostname fake_host just fine if the host
in not valid. The play 

  - hosts: all
tasks:
  - set_fact:
  dummy_fact: "Hello world"
  cacheable: yes
delegate_to: fake_host
delegate_facts: true
run_once: true
  - debug:
  var: hostvars.fake_host.ansible_facts
run_once: true


should report

"hostvars.fake_host.ansible_facts": "VARIABLE IS NOT DEFINED!"

> Can someone tell me if this is even possible to do? Possible to target
> directly?

If the host is valid. All works as expected. For example, the playbook
  
  - hosts: all
tasks:
  - set_fact:
  dummy_fact: "Hello world"
  cacheable: yes
delegate_to: test_01
delegate_facts: true
run_once: true
  - debug:
  var: hostvars.test_01.ansible_facts
run_once: true

  - hosts: test_01
tasks:
  - debug:
  var: hostvars.test_01.ansible_facts
  - meta: clear_facts
  - debug:
  var: hostvars.test_01.ansible_facts

gives

  PLAY [all]
  ok: [test_01] => {
"hostvars.test_01.ansible_facts": {
"dummy_fact": "Hello world"
}
  }

  PLAY [test_01]
  ok: [test_01] => {
"hostvars.test_01.ansible_facts": {
"dummy_fact": "Hello world"
}
  }
  ok: [test_01] => {
"hostvars.test_01.ansible_facts": {}
  }

To make it reproducible test it without tower. HTH,

-vlado

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20200201072943.32bd43d9%40gmail.com.


pgpbXo9oaHKBU.pgp
Description: OpenPGP digital signature


[ansible-project] Ansible Tower and Facts

2020-01-31 Thread Glen Collins
Hello.

I am currently running my playbooks using Ansible Tower. I'm trying to 
work with facts as a method to store information that I can keep around 
until I want to get rid of it. Use it in multiple playbooks, etc. While I 
have it fully functional I'm wondering how I can clear the facts to that 
host in the inventory that's not a valid host. So here is what I do...


My hostname in tower is called: fake_host

I'm using the set_fact module and delegate_to function to set the facts in 
the fake_host hostname.

- name: Set facts
  set_fact:
   dummy_fact: "Hello world"
   cacheable: yes
  delegate_to: fake_host
  delegate_facts: true

This sets the fact in the hostname fake_host just fine. But if I want to 
clear the fact, I cannot because it's not targeted by the playbook. So 
it'll never clear the cache. The manner I tried is:

- name: clear fact cache
  meta: clear_facts
  delegate_to: fake_host

The meta tag does not obviously work with the delegate_to function since 
it's not clearing the facts.

I have tried to target the playbook using host: fake_host but the playbook 
run tells me the host is invalid or something to that effect. Can someone 
tell me if this is even possible to do? Possible to target directly?

If not, I'll have to find other ways to keep this information for usage in 
other playbooks. And while I can save the facts to a file, it's something 
I've decided not to do at this time.

Thanks.

Glen


-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/41d23112-c20a-442c-aeaa-240d2f50c6a9%40googlegroups.com.


Re: [ansible-project] Ansible Tower and Akamai API

2019-12-04 Thread Stefan Hornburg (Racke)
On 12/4/19 4:16 PM, Garry Taylor wrote:
> Hello,
> We have been using Ansible Tower to purge website objects in Akamai cache 
> (Akamai is a CDN) for several years, using an
> Akamai API
> Akamai no longer provide the API version 2, and have forced customers to use 
> a new API version 3.
> There seems to be some compatibility issues with the Ansible yaml or the 
> network module and Akamai new API.

Garry, please contact RedHat support. This list covers Ansible, but not AWX or 
Tower.

Regards
 Racke

> 
> This is some information from Akamai.= and I have followed all the details.
> https://developer.akamai.com/api/getting-started
> Fro mthe Red Hat OS , I cna run commands that will connect to Akamai API and 
> purge objects gfrom their cache.
> But I cannot get it to work from within Ansible Tower 
> 
> We use Ansible Tower with survey Survey options so that users can type in the 
> website URL that needs to be purged from
> Akamai cached.
> 
> I have amended the yml so as to accept all the required Akamai tokens, but I 
> get this error.
> 
>         "detail": "Authorization header missing",
> 
> 
> 
> The program is yaml code, called main.yml.
> 
> This is another file that sets the variables, this is called akamai.yml.
> 
>  
> 
>  But the main.yml loads an Ansible module called uri, you can see this on 
> line 18 of main.yml.
> 
> This module called uri is a built in Ansible module, details here
> https://docs.ansible.com/ansible/latest/modules/uri_module.html#uri-module
> 
>  
> 
>  
> 
> So the process is a user with access to Ansible Tower launches a job (see 
> screen shot), the job takes interactive
> variables, such as the URL to purge and which network, Production or Staging.
> 
> The akamai.yml captures the variables and then calls the main.yml. It is the 
> main.yml that then users the variables and
> purges the object.
> 
> 
> akamai.yml:
> 
> ---
> 
> 
> 
> - hosts: akamai
> 
>   gather_facts: False
> 
>   connection: local
> 
>   vars:
> 
>     domain: staging
> 
> #  sudo: no
> 
>   roles:
> 
>     - { role: akamai_purge, akamai_client_secret: 
> "{{akamai_credentials.client_secret}}", akamai_access_token:
> "{{akamai_credentials.access_token}}", akamai_client_token: 
> "{{akamai_credentials.client_token}}", akamai_host:
> "{{akamai_credentials.host}}" }
> 
> 
> 
> main.yml:
> 
> ---
> 
> # tasks file for akamai_purge 
> 
> 
> - name: Install python dependency
> 
>   pip: name={{item}} state=present
> 
>   with_items:
> 
>     - httplib2 
> 
>   tags:
> 
>     - akamai_purge
> 
>     - akamai_purge_arl
> 
>     - akamai_purge_cpcode
> 
>     - akamai_status
> 
>     - akamai_purge_friendly
> 
> 
> 
> # Usage: ansible-playbook akamai.yml -i inventory/local --tags 
> akamai_purge_arl -vv --extra-vars
> arl=http://www.example.com/graphics/picture.gif,http://www.example.com/documents/brochure.pdf
> 
> - name: Submit ARL Purge Request
> 
>   uri:
> 
>     url: "my_host_url/ccu/v3/invalidate/url/{{ queue_name | 
> default('staging') }}" 
> 
>     method: POST
> 
>     client_secret: "{{akamai_client_secret}}"
> 
>     access_token: "{{akamai_access_token}}"
> 
>     client_token: "{{akamai_client_token}}"
> 
>     force_basic_auth: yes 
> 
>     body: "{'action':'{{ akamai_action | default('remove')}}','domain':'{{ 
> akamaidomain | lower }}','objects':['{{arl |
> to_json | replace('\"','') | replace('[','') | replace(']','') | 
> replace(',',', ') }}'],'type':'arl'}" 
> 
>     headers:
> 
>       Content-Type: "application/json"
> 
>     status_code: 201
> 
>     body_format: json
> 
>     return_content: yes
> 
>   register: purge_request_response
> 
>   when: arl is defined
> 
>   tags:
> 
>     - akamai_purge_arl
> 
> 
> - name: Notify email on purge status
> 
>   mail: 
> 
>     host: 127.0.0.1
> 
>     port: 25
> 
>     subject: "Akamai Purge {{purge_status_response.json.purgeStatus}} for
> {{arl|default('')}}{{cpcode|default('')}}{{friendly|default('')}}"
> 
>     body: "Purge {{purge_status_response.json.purgeStatus}}
> {{arl|default('')}}{{cpcode|default('')}}{{friendly|default('')}} 
> {{purge_status_response.json | to_nice_yaml}}"
> 
>     from: removedem...@email.com
> 
>     to: "{{notifyemail}}"
> 
>     charset: utf8
> 
>   ignore_errors: true
> 
>   tags:
> 
>     - akamai_purge
> 
>     - akamai_purge_arl
> 
>     - akamai_purge_cpcode
> 
>     - akamai_purge_friendly
> 
>     - silent
> 
>     
> 
> 
> - name: Output response variables
> 
>   debug: var={{ item }}
> 
>   with_items:
> 
> #    - queue_length_response.json
> 
>     - purge_request_response.json
> 
>     - purge_status_response.json
> 
>   when: "{{ item }} is defined"
> 
>   tags:
> 
>     - akamai_purge
> 
>     - akamai_purge_arl
> 
>     - akamai_purge_cpcode
> 
>     - akamai_purge_friendly
> 
> -- 
> 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
> ansible-p

[ansible-project] Ansible Tower and Akamai API

2019-12-04 Thread Garry Taylor
Hello,
We have been using Ansible Tower to purge website objects in Akamai cache 
(Akamai is a CDN) for several years, using an Akamai API
Akamai no longer provide the API version 2, and have forced customers to 
use a new API version 3.
There seems to be some compatibility issues with the Ansible yaml or the 
network module and Akamai new API.

This is some information from Akamai.= and I have followed all the details.
https://developer.akamai.com/api/getting-started
Fro mthe Red Hat OS , I cna run commands that will connect to Akamai API 
and purge objects gfrom their cache.
But I cannot get it to work from within Ansible Tower 

We use Ansible Tower with survey Survey options so that users can type in 
the website URL that needs to be purged from Akamai cached.

I have amended the yml so as to accept all the required Akamai tokens, but 
I get this error.

"detail": "Authorization header missing",


The program is yaml code, called main.yml.

This is another file that sets the variables, this is called akamai.yml.

 

 But the main.yml loads an Ansible module called uri, you can see this on 
line 18 of main.yml.

This module called uri is a built in Ansible module, details here 
https://docs.ansible.com/ansible/latest/modules/uri_module.html#uri-module

 

 

So the process is a user with access to Ansible Tower launches a job (see 
screen shot), the job takes interactive variables, such as the URL to purge 
and which network, Production or Staging.

The akamai.yml captures the variables and then calls the main.yml. It is 
the main.yml that then users the variables and purges the object.


akamai.yml:

---



- hosts: akamai

  gather_facts: False

  connection: local

  vars:

domain: staging

#  sudo: no

  roles:

- { role: akamai_purge, akamai_client_secret: 
"{{akamai_credentials.client_secret}}", akamai_access_token: 
"{{akamai_credentials.access_token}}", akamai_client_token: 
"{{akamai_credentials.client_token}}", akamai_host: 
"{{akamai_credentials.host}}" }


main.yml:

---

# tasks file for akamai_purge 


- name: Install python dependency

  pip: name={{item}} state=present

  with_items:

- httplib2 

  tags:

- akamai_purge

- akamai_purge_arl

- akamai_purge_cpcode

- akamai_status

- akamai_purge_friendly



# Usage: ansible-playbook akamai.yml -i inventory/local --tags 
akamai_purge_arl -vv --extra-vars 
arl=http://www.example.com/graphics/picture.gif,http://www.example.com/documents/brochure.pdf

- name: Submit ARL Purge Request

  uri:

url: "my_host_url/ccu/v3/invalidate/url/{{ queue_name | 
default('staging') }}" 

method: POST

client_secret: "{{akamai_client_secret}}"

access_token: "{{akamai_access_token}}"

client_token: "{{akamai_client_token}}"

force_basic_auth: yes 

body: "{'action':'{{ akamai_action | default('remove')}}','domain':'{{ 
akamaidomain | lower }}','objects':['{{arl | to_json | replace('\"','') | 
replace('[','') | replace(']','') | replace(',',', ') }}'],'type':'arl'}" 

headers:

  Content-Type: "application/json"

status_code: 201

body_format: json

return_content: yes

  register: purge_request_response

  when: arl is defined

  tags:

- akamai_purge_arl


- name: Notify email on purge status

  mail: 

host: 127.0.0.1

port: 25

subject: "Akamai Purge {{purge_status_response.json.purgeStatus}} for 
{{arl|default('')}}{{cpcode|default('')}}{{friendly|default('')}}"

body: "Purge {{purge_status_response.json.purgeStatus}} 
{{arl|default('')}}{{cpcode|default('')}}{{friendly|default('')}} 
{{purge_status_response.json | to_nice_yaml}}"

from: removedem...@email.com

to: "{{notifyemail}}"

charset: utf8

  ignore_errors: true

  tags:

- akamai_purge

- akamai_purge_arl

- akamai_purge_cpcode

- akamai_purge_friendly

- silent




- name: Output response variables

  debug: var={{ item }}

  with_items:

#- queue_length_response.json

- purge_request_response.json

- purge_status_response.json

  when: "{{ item }} is defined"

  tags:

- akamai_purge

- akamai_purge_arl

- akamai_purge_cpcode

- akamai_purge_friendly

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ac222374-db0d-411e-a64a-57ce4c04c529%40googlegroups.com.


Re: [ansible-project] Ansible Tower 3.5 Attempting to send email notification

2019-10-22 Thread Mike Murphy
Thank you

On Tue, Oct 22, 2019 at 11:36 AM Eugéne Roux  wrote:

> Hi Mike,
>
> Have a look whether the following resolves your issue:
>
> https://github.com/ansible/awx/issues/2830
>
>
> Based on that, one potential resolution is to add "host: SMTPSERVER" to
> your playbook; without it the AWX docker node will attempt to connect to
> the conatainer's localhost interface, and mail will be dropped...
>
> Regards,
> Eugéne
>
> On 22 Oct 2019, at 17:03, Mike Murphy  wrote:
>
> I am attempting to send an email notification from Ansible Tower 3.5.3. I
> keep getting the following error when testing the notification:
> Output from task_system.log
>
> ERRORawx.main.tasks Send Notification Failed [Errno 111] Connection
> refused
>
> I can manually send mail from that same server. I don't see anything in
> the maillog either.
>
> Any suggestions please.
>
> Regards
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/60903a5e-611f-44cc-8ee1-9eecc5bf16dc%40googlegroups.com
> 
> .
>
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/C1866DBD-363C-4F10-8501-BB44A6692E1D%40gmail.com
> 
> .
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFoRvDbka3W%2B%3D7HU_eZUWdt6acLKnR1txSr4aWd5on_Jgk0%2Bcg%40mail.gmail.com.


Re: [ansible-project] Ansible Tower 3.5 Attempting to send email notification

2019-10-22 Thread Eugéne Roux
Hi Mike,

Have a look whether the following resolves your issue:

https://github.com/ansible/awx/issues/2830

Based on that, one potential resolution is to add "host: SMTPSERVER" to your 
playbook; without it the AWX docker node will attempt to connect to the 
conatainer's localhost interface, and mail will be dropped...

Regards,
Eugéne

> On 22 Oct 2019, at 17:03, Mike Murphy  wrote:
> 
> I am attempting to send an email notification from Ansible Tower 3.5.3. I 
> keep getting the following error when testing the notification:
> Output from task_system.log
> 
> ERRORawx.main.tasks Send Notification Failed [Errno 111] Connection 
> refused
> 
> I can manually send mail from that same server. I don't see anything in the 
> maillog either.
> 
> Any suggestions please.
> 
> Regards
> 
> -- 
> 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 ansible-project+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/60903a5e-611f-44cc-8ee1-9eecc5bf16dc%40googlegroups.com
>  
> .

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/C1866DBD-363C-4F10-8501-BB44A6692E1D%40gmail.com.


Re: [ansible-project] Ansible Tower 3.5 Attempting to send email notification

2019-10-22 Thread Mike Murphy
Ok thank you

On Tue, Oct 22, 2019 at 11:12 AM Kai Stian Olstad <
ansible-project+l...@olstad.com> wrote:

> On 22.10.2019 17:03, Mike Murphy wrote:
> > I am attempting to send an email notification from Ansible Tower 3.5.3. I
>
> This is the list for Ansible and not Tower, contact RedHat support for
> help with Tower.
>
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/ca40f3b8-6338-c4d1-9e93-0d8df481e8c6%40olstad.com
> .
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFoRvDaGFvxynKd9MkWMctx-gUd4q2vUkLfbaaF-C_ctT5CjOA%40mail.gmail.com.


Re: [ansible-project] Ansible Tower 3.5 Attempting to send email notification

2019-10-22 Thread Kai Stian Olstad
On 22.10.2019 17:03, Mike Murphy wrote:
> I am attempting to send an email notification from Ansible Tower 3.5.3. I

This is the list for Ansible and not Tower, contact RedHat support for help 
with Tower.


-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ca40f3b8-6338-c4d1-9e93-0d8df481e8c6%40olstad.com.


[ansible-project] Ansible Tower 3.5 Attempting to send email notification

2019-10-22 Thread Mike Murphy
I am attempting to send an email notification from Ansible Tower 3.5.3. I 
keep getting the following error when testing the notification:
Output from task_system.log

ERRORawx.main.tasks Send Notification Failed [Errno 111] Connection 
refused

I can manually send mail from that same server. I don't see anything in the 
maillog either.

Any suggestions please.

Regards

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/60903a5e-611f-44cc-8ee1-9eecc5bf16dc%40googlegroups.com.


[ansible-project] Ansible tower "fatal error"

2019-10-22 Thread Rupender singh chauhan
Hi Team,

*Please help me on this below error. it is Ansible tower server.*

TASK [tomcat_instance_create : Pull down keystore from git] 

task path: 
/var/lib/awx/projects/_128__tomcat_dev_yaml_b/roles/tomcat_instance_create/tasks/tomcat-ssl-install.yml:29
 ESTABLISH LOCAL CONNECTION FOR USER: awx
 EXEC /bin/bash -c 'echo ~awx && sleep 0'
 EXEC /bin/bash -c '( umask 77 && mkdir -p "` echo 
/var/lib/awx/.ansible/tmp/ansible-tmp-1571718466.79-138975368572056 `" && 
echo ansible-tmp-1571718466.79-138975368572056="` echo 
/var/lib/awx/.ansible/tmp/ansible-tmp-1571718466.79-138975368572056 `" ) && 
sleep 0'
Using module file 
/usr/lib/python2.7/site-packages/ansible/modules/source_control/git.py
 PUT /var/lib/awx/.ansible/tmp/ansible-local-3O21Dm7/tmprvDzaZ 
TO 
/var/lib/awx/.ansible/tmp/ansible-tmp-1571718466.79-138975368572056/AnsiballZ_git.py
 EXEC /bin/bash -c 'chmod u+x 
/var/lib/awx/.ansible/tmp/ansible-tmp-1571718466.79-138975368572056/ 
/var/lib/awx/.ansible/tmp/ansible-tmp-1571718466.79-138975368572056/AnsiballZ_git.py
 
&& sleep 0'
 EXEC /bin/bash -c '/usr/bin/python2 
/var/lib/awx/.ansible/tmp/ansible-tmp-1571718466.79-138975368572056/AnsiballZ_git.py
 
&& sleep 0'
 EXEC /bin/bash -c 'rm -f -r 
/var/lib/awx/.ansible/tmp/ansible-tmp-1571718466.79-138975368572056/ > 
/dev/null 2>&1 && sleep 0'
fatal: [chdtl1ap32.corpdev.transunion.com -> localhost]: FAILED! => {
"changed": false, 
"cmd": "/usr/bin/git clone --origin origin 
'https://api:@git.transunion.com/scm/wbh/ansible_tomcat_dev_yamls.git' 
/tmp/ansible/keystore", 
"invocation": {
"module_args": {
"accept_hostkey": false, 
"archive": null, 
"bare": false, 
"clone": true, 
"depth": null, 
"dest": "/tmp/ansible/keystore", 
"executable": null, 
"force": false, 
"key_file": null, 
"recursive": true, 
"reference": null, 
"refspec": null, 
"remote": "origin", 
"repo": "https://api:xx@git.transunio…
PLAY RECAP 
*
x.com : ok=26   changed=0unreachable=0failed=1

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20fe0e1d-95b9-48c8-b8ab-c7485ab3e151%40googlegroups.com.


[ansible-project] Ansible Tower install is failing due to awx-manage migrate

2019-09-26 Thread Sunil

I new to Ansible and learning and installing Ansible tower on CentOS 7.

ansible 2.8.4
python  2.7.5
ansible tower - 3.4.2.-1 ( i tired 3.4 version also, got same issue on that)

Getting below error

TASK [awx_install : Wait for supervisor to stop.] 
**
ok: [localhost] => {"attempts": 1, "changed": false, "stat": {"exists": 
false}}

TASK [awx_install : Migrate the Tower database schema (may take awhile when 
upgrading).] ***
fatal: [localhost]: FAILED! => {"changed": false, "cmd": "awx-manage 
migrate --noinput", "msg": "[Errno 2] No such file or directory", "rc": 2}

RUNNING HANDLER [supervisor : restart supervisor] 
**

RUNNING HANDLER [nginx : restart nginx] 


PLAY RECAP 
*
localhost  : ok=105  changed=13   unreachable=0
failed=1skipped=60   rescued=0ignored=1   

Thanks in Advance

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0a71a815-89d4-421e-ae8a-132c1ac88ee3%40googlegroups.com.


Re: [ansible-project] Ansible Tower installation getting failed.

2019-09-06 Thread Stefan Hornburg (Racke)
On 9/7/19 6:11 AM, Vivek Vijayan wrote:
> Not sure what exactly. U meant to say the Ansible tower package?. I just 
> downloaded the bundled package.version 3.2.
> 
> My server python version is 2.7.5 and ansible version is  2.8.
> 

At any rate, this list is for Ansible only. Please contact RedHat support for 
questions and bug reports.

Regards
 Racke

> 
> -- 
> 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
> ansible-project+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAJztPtQ2HP7p%3DwKNQ4J0HPg1RqTze-d5_qNhnK5nKp24bf0VPQ%40mail.gmail.com
> .


-- 
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/edd6563d-2c88-ea26-dcc7-520f80894bf5%40linuxia.de.


signature.asc
Description: OpenPGP digital signature


Re: [ansible-project] Ansible Tower installation getting failed.

2019-09-06 Thread Vivek Vijayan
Not sure what exactly. U meant to say the Ansible tower package?. I just
downloaded the bundled package.version 3.2.

My server python version is 2.7.5 and ansible version is  2.8.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAJztPtQ2HP7p%3DwKNQ4J0HPg1RqTze-d5_qNhnK5nKp24bf0VPQ%40mail.gmail.com.


Re: [ansible-project] Ansible Tower installation getting failed.

2019-09-01 Thread Barun kumar
While Tower installation, ansible looks for all dependencies and if that
doesn't find then it will trigger yum to download the required packages,
hence in that case servers should have red hat repository configured .

Hope this will help you.

On Thu, 22 Aug 2019, 5:30 am Vivek Vijayan,  wrote:

> Tried.  But really stuck on this issue.. is there any workaround for this
> issue ( we need to do the offline installation)
>
> On Mon, 19 Aug 2019, 23:06 Jonathan Lozada De La Matta, <
> jloza...@redhat.com> wrote:
>
>> Vivek,
>>
>> Reach out to Red Hat support for more help in this.
>>
>> On Mon, Aug 19, 2019 at 1:27 PM Vivek Vijayan 
>> wrote:
>>
>>> Hi Experts,
>>>
>>> I am trying to install Ansible tower 3.2.0 version in my Redhat machine
>>> 7.2  and getting following error. I already installed ansible version 2.8 .
>>> But tower installation is getting failed.
>>>
>>> failed: [localhost] (item=[u'python-psycopg2', u'python-setuptools', u
>>> 'libselinux-python', u'setools-libs', u'yum-utils', u'sudo', u'acl']) =>
>>> {"ansible_loop_var": "item", "changed": false, "item": [
>>> "python-psycopg2", "python-setuptools", "libselinux-python",
>>> "setools-libs", "yum-utils", "sudo", "acl"], "msg": "The Python 2
>>> bindings for rpm are needed for this module. If you require Python 3
>>> support use the `dnf` Ansible module instead.. The Python 2 yum module is
>>> needed for this module. If you require Python 3 support use the `dnf`
>>> Ansible module instead."}
>>>
>>>
>>> PLAY RECAP
>>> **
>>> localhost  : ok=28   changed=3unreachable=0
>>>  failed=1skipped=113  rescued=0ignored=2
>>>
>>>
>>> [error] Oops!  An error occured while running setup.
>>> [warn] /var/log/tower does not exist.
>>> Setup log saved to setup.log.
>>>
>>> Also tried to explicity put the pyuthon2.7 entry in /etc/ansible/hosts
>>> file. but still it fails.
>>>
>>> please advise me here. ( In my server no internet connectivity and doing
>>> through offline package)
>>>
>>> --
>>> 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 ansible-project+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/ansible-project/15acec08-2701-4836-b41e-8b46e0a25a8c%40googlegroups.com
>>> 
>>> .
>>>
>>
>>
>> --
>>
>> Jonathan Cha'gara Lozada De La Matta
>>
>> He / Him / His
>>
>> Red Hat 
>>
>> Senior Automation Practice Consultant & Automation CoP Manager
>>
>> Join the Automation CoP! https://red.ht/autocop
>> @redhatjobs    redhatjobs
>>  @redhatjobs
>> 
>> 
>>
>>
>> --
>> 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 ansible-project+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/CAFYJA%2BJEwMQ6D6m__bbDZhX7GLB1Y3GLJ-vgHz_XmaU--tbw2w%40mail.gmail.com
>> 
>> .
>>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAJztPtQnGxLV79EgPTkL6z4p24rgbrrrdkW228QuU_-jxZok1g%40mail.gmail.com
> 
> .
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CADG%3Dkou-Ff%3D1w_jTeNsZq5NriHLJW9a%2Bk2945xFB1%3DHUrRTs4w%40mail.gmail.com.


Re: [ansible-project] Ansible Tower installation getting failed.

2019-08-21 Thread Vivek Vijayan
Tried.  But really stuck on this issue.. is there any workaround for this
issue ( we need to do the offline installation)

On Mon, 19 Aug 2019, 23:06 Jonathan Lozada De La Matta, 
wrote:

> Vivek,
>
> Reach out to Red Hat support for more help in this.
>
> On Mon, Aug 19, 2019 at 1:27 PM Vivek Vijayan  wrote:
>
>> Hi Experts,
>>
>> I am trying to install Ansible tower 3.2.0 version in my Redhat machine
>> 7.2  and getting following error. I already installed ansible version 2.8 .
>> But tower installation is getting failed.
>>
>> failed: [localhost] (item=[u'python-psycopg2', u'python-setuptools', u
>> 'libselinux-python', u'setools-libs', u'yum-utils', u'sudo', u'acl']) =>
>> {"ansible_loop_var": "item", "changed": false, "item": ["python-psycopg2"
>> , "python-setuptools", "libselinux-python", "setools-libs", "yum-utils",
>> "sudo", "acl"], "msg": "The Python 2 bindings for rpm are needed for
>> this module. If you require Python 3 support use the `dnf` Ansible module
>> instead.. The Python 2 yum module is needed for this module. If you require
>> Python 3 support use the `dnf` Ansible module instead."}
>>
>>
>> PLAY RECAP
>> **
>> localhost  : ok=28   changed=3unreachable=0failed
>> =1skipped=113  rescued=0ignored=2
>>
>>
>> [error] Oops!  An error occured while running setup.
>> [warn] /var/log/tower does not exist.
>> Setup log saved to setup.log.
>>
>> Also tried to explicity put the pyuthon2.7 entry in /etc/ansible/hosts
>> file. but still it fails.
>>
>> please advise me here. ( In my server no internet connectivity and doing
>> through offline package)
>>
>> --
>> 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 ansible-project+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/15acec08-2701-4836-b41e-8b46e0a25a8c%40googlegroups.com
>> 
>> .
>>
>
>
> --
>
> Jonathan Cha'gara Lozada De La Matta
>
> He / Him / His
>
> Red Hat 
>
> Senior Automation Practice Consultant & Automation CoP Manager
>
> Join the Automation CoP! https://red.ht/autocop
> @redhatjobs    redhatjobs
>  @redhatjobs
> 
> 
>
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAFYJA%2BJEwMQ6D6m__bbDZhX7GLB1Y3GLJ-vgHz_XmaU--tbw2w%40mail.gmail.com
> 
> .
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAJztPtQnGxLV79EgPTkL6z4p24rgbrrrdkW228QuU_-jxZok1g%40mail.gmail.com.


Re: [ansible-project] Ansible Tower installation getting failed.

2019-08-19 Thread Jonathan Lozada De La Matta
Vivek,

Reach out to Red Hat support for more help in this.

On Mon, Aug 19, 2019 at 1:27 PM Vivek Vijayan  wrote:

> Hi Experts,
>
> I am trying to install Ansible tower 3.2.0 version in my Redhat machine
> 7.2  and getting following error. I already installed ansible version 2.8 .
> But tower installation is getting failed.
>
> failed: [localhost] (item=[u'python-psycopg2', u'python-setuptools', u
> 'libselinux-python', u'setools-libs', u'yum-utils', u'sudo', u'acl']) => {
> "ansible_loop_var": "item", "changed": false, "item": ["python-psycopg2",
> "python-setuptools", "libselinux-python", "setools-libs", "yum-utils",
> "sudo", "acl"], "msg": "The Python 2 bindings for rpm are needed for this
> module. If you require Python 3 support use the `dnf` Ansible module
> instead.. The Python 2 yum module is needed for this module. If you require
> Python 3 support use the `dnf` Ansible module instead."}
>
>
> PLAY RECAP
> **
> localhost  : ok=28   changed=3unreachable=0failed=
> 1skipped=113  rescued=0ignored=2
>
>
> [error] Oops!  An error occured while running setup.
> [warn] /var/log/tower does not exist.
> Setup log saved to setup.log.
>
> Also tried to explicity put the pyuthon2.7 entry in /etc/ansible/hosts
> file. but still it fails.
>
> please advise me here. ( In my server no internet connectivity and doing
> through offline package)
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/15acec08-2701-4836-b41e-8b46e0a25a8c%40googlegroups.com
> 
> .
>


-- 

Jonathan Cha'gara Lozada De La Matta

He / Him / His

Red Hat 

Senior Automation Practice Consultant & Automation CoP Manager

Join the Automation CoP! https://red.ht/autocop
@redhatjobs    redhatjobs
 @redhatjobs



-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFYJA%2BJEwMQ6D6m__bbDZhX7GLB1Y3GLJ-vgHz_XmaU--tbw2w%40mail.gmail.com.


[ansible-project] Ansible Tower installation getting failed.

2019-08-19 Thread Vivek Vijayan
Hi Experts,

I am trying to install Ansible tower 3.2.0 version in my Redhat machine 
7.2  and getting following error. I already installed ansible version 2.8 . 
But tower installation is getting failed.

failed: [localhost] (item=[u'python-psycopg2', u'python-setuptools', u
'libselinux-python', u'setools-libs', u'yum-utils', u'sudo', u'acl']) => {
"ansible_loop_var": "item", "changed": false, "item": ["python-psycopg2", 
"python-setuptools", "libselinux-python", "setools-libs", "yum-utils", 
"sudo", "acl"], "msg": "The Python 2 bindings for rpm are needed for this 
module. If you require Python 3 support use the `dnf` Ansible module 
instead.. The Python 2 yum module is needed for this module. If you require 
Python 3 support use the `dnf` Ansible module instead."}


PLAY RECAP 
**
localhost  : ok=28   changed=3unreachable=0failed=1 
   skipped=113  rescued=0ignored=2


[error] Oops!  An error occured while running setup.
[warn] /var/log/tower does not exist.
Setup log saved to setup.log.

Also tried to explicity put the pyuthon2.7 entry in /etc/ansible/hosts 
file. but still it fails.

please advise me here. ( In my server no internet connectivity and doing 
through offline package)

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/15acec08-2701-4836-b41e-8b46e0a25a8c%40googlegroups.com.


Re: [ansible-project] Ansible Tower 3.5.1 - Installation - Valut_Pass

2019-08-09 Thread Kai Stian Olstad

On 09.08.2019 10:32, Kalyan Alamuru wrote:
Oh ok.. Thanks for the update. I thought Tower's Open Source Offering 
is
also there(Which I guess AWX) just checking whether any body's 
encountered

similar issue out here or not..


AWX has it's own list, search and you'll find.


--
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/32ee14b2bb1549fa3e5f9ec82ee0074a%40olstad.com.


Re: [ansible-project] Ansible Tower 3.5.1 - Installation - Valut_Pass

2019-08-09 Thread Kalyan Alamuru
Oh ok.. Thanks for the update. I thought Tower's Open Source Offering is 
also there(Which I guess AWX) just checking whether any body's encountered 
similar issue out here or not..

On Thursday, 8 August 2019 16:13:42 UTC+1, Kai Stian Olstad wrote:
>
> On 08.08.2019 16:57, Kalyan Alamuru wrote: 
> > Hi, 
> > 
> > I've installed  Ansible Tower 3.5.1 on CentOs 7 EC2 Instance for our 
> > deployments. After Installtion I've set up some Jobs using Jobs 
> Template, 
> > When I try to launch them I'm getting following error. 
> This is the list for Ansible not Tower, please contact RedHat support on 
> Tower. 
>
>
> -- 
> 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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/bee6cb7f-0170-40f3-8dbb-382bc510b389%40googlegroups.com.


Re: [ansible-project] Ansible Tower 3.5.1 - Installation - Valut_Pass

2019-08-08 Thread Kai Stian Olstad
On 08.08.2019 16:57, Kalyan Alamuru wrote:
> Hi,
> 
> I've installed  Ansible Tower 3.5.1 on CentOs 7 EC2 Instance for our
> deployments. After Installtion I've set up some Jobs using Jobs Template,
> When I try to launch them I'm getting following error.
This is the list for Ansible not Tower, please contact RedHat support on Tower.


-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/54f6a99c-3abe-612e-6055-67604c99d1e5%40olstad.com.


[ansible-project] Ansible Tower 3.5.1 - Installation - Valut_Pass

2019-08-08 Thread Kalyan Alamuru
Hi,

I've installed  Ansible Tower 3.5.1 on CentOs 7 EC2 Instance for our 
deployments. After Installtion I've set up some Jobs using Jobs Template, 
When I try to launch them I'm getting following error.

*The vault password file /var/lib/awx/.vault_pass was not found*


I've created .valut_pass.txt  in the above directory and try to re-ran the 
Job it is failed, Then I try to update .vault_pass in home ./~ directory 
and re-ran the Job still it is failed.  Also I made reference to 
.valut_pass in bash profile also  by reference the path 
(ANSIBLE_VAULT_PASSWORD_FILE=~/.vault_pass.txt) still it failed when I try 
to run the job.

Also I tried to remove the reference(Just for testing) from 
ansible.cfg(User one, which is there in my Ansible Tower Set up) to see 
whether Job will run, Still it failed,

In all the above three instances it is failing with Same errors. I don't 
understand how the come the Job fails even after I remove reference from 
ansible.cfg.

FYI,Whenever I made any changes, I've restarted the ansible-tower-service 
and tested it. I also checked /etc/ansible/ansible.cfg file also but there 
are no references to valut_pass in that file and also as per ansible 
documentation, If user ansible_cfg is there than that takes precedence so 
it should not be an issue, I guess.

Has any one of you faced similar error and able to resolve it? If so please 
let me know what's the work around?

Regards
Kalyan.
 




-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/80f23dce-d6c3-472a-aa49-e0f926a72f25%40googlegroups.com.


Re: [ansible-project] Ansible tower installation error !!

2019-07-20 Thread Ankit Vashistha
Try validating the error: *no password supplied*.

*Regards,*
*Ankit*


On Sat, Jul 20, 2019 at 7:23 PM aditya singh  wrote:

> Hi recently i was trying to install Tower in centos7 bu t iam getting a
> error during the time of installation / Can i get some help ???
>
>
> The Error I'm getting is this :
>
> TASK [awx_install : Migrate the Tower database schema (may take awhile
> when upgrading).]
> 
> fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["awx-manage",
> "migrate", "--noinput"], "delta": "0:00:04.740891", "end": "2019-07-20
> 19:18:57.200241", "msg": "non-zero return code", "rc": 1, "start":
> "2019-07-20 19:18:52.459350", "stderr": "Traceback (most recent call
> last):\n  File
> \"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/base/base.py\",
> line 213, in ensure_connection\nself.connect()\n  File
> \"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/base/base.py\",
> line 189, in connect\nself.connection =
> self.get_new_connection(conn_params)\n  File
> \"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/postgresql/base.py\",
> line 176, in get_new_connection\nconnection =
> Database.connect(**conn_params)\n  File
> \"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/psycopg2/__init__.py\",
> line 130, in connect\nconn = _connect(dsn,
> connection_factory=connection_factory,
> **kwasync)\npsycopg2.OperationalError: fe_sendauth: no password
> supplied\n\n\nThe above exception was the direct cause of the following
> exception:\n\nTraceback (most recent call last):\n  File \"/settings.py\",
> line 91, in _ctit_db_wrapper\n  File \"/settings.py\", line 447, in
> __getattr__\n  File \"/settings.py\", line 363, in _get_local\n  File
> \"/settings.py\", line 325, in _preload_cache\n  File
> \"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/models/query.py\",
> line 250, in __iter__\nself._fetch_all()\n  File
> \"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/models/query.py\",
> line 1121, in _fetch_all\nself._result_cache =
> list(self._iterable_class(self))\n  File
> \"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/models/query.py\",
> line 53, in __iter__\nresults =
> compiler.execute_sql(chunked_fetch=self.chunked_fetch)\n  File
> \"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/models/sql/compiler.py\",
> line 887, in execute_sql\ncursor = self.connection.cursor()\n  File
> \"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/base/base.py\",
> line 254, in cursor\nreturn self._cursor()\n  File
> \"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/base/base.py\",
> line 229, in _cursor\nself.ensure_connection()\n  File
> \"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/base/base.py\",
> line 213, in ensure_connection\nself.connect()\n  File
> \"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/utils.py\",
> line 94, in __exit__\nsix.reraise(dj_exc_type, dj_exc_value,
> traceback)\n  File
> \"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/utils/six.py\",
> line 685, in reraise\nraise value.with_traceback(tb)\n  File
> \"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/base/base.py\",
> line 213, in ensure_connection\nself.connect()\n  File
> \"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/base/base.py\",
> line 189, in connect\nself.connection =
> self.get_new_connection(conn_params)\n  File
> \"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/postgresql/base.py\",
> line 176, in get_new_connection\nconnection =
> Database.connect(**conn_params)\n  File
> \"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/psycopg2/__init__.py\",
> line 130, in connect\nconn = _connect(dsn,
> connection_factory=connection_factory,
> **kwasync)\ndjango.db.utils.OperationalError: fe_sendauth: no password
> supplied\n\n\nDuring handling of the above exception, another exception
> occurred:\n\nTraceback (most recent call last):\n  File
> \"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/base/base.py\",
> line 213, in ensure_connection\nself.connect()\n  File
> \"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/base/base.py\",
> line 189, in connect\nself.connection =
> self.get_new_connection(conn_params)\n  File
> \"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/postgresql/base.py\",
> line 176, in get_new_connection\nconnection =
> Database.connect(**conn_params)\n  File
> \"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/psycopg2/__init__.py\",
> line 130, in connect\nconn = _connect(dsn,
> connection_factory=connection_factory,
> **kwasync)\npsycopg2.OperationalError: fe_

Re: [ansible-project] Ansible tower installation error !!

2019-07-20 Thread Jonathan Lozada De La Matta
please resch out to support. This is for ansible.

Jonathan Lozada De La Matta on mobile


From: ansible-project@googlegroups.com on behalf of aditya singh 

Sent: Saturday, July 20, 2019 9:53 AM
To: Ansible Project
Subject: [ansible-project] Ansible tower installation error !!

Hi recently i was trying to install Tower in centos7 bu t iam getting a error 
during the time of installation / Can i get some help ???


The Error I'm getting is this :

TASK [awx_install : Migrate the Tower database schema (may take awhile when 
upgrading).] 

fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["awx-manage", 
"migrate", "--noinput"], "delta": "0:00:04.740891", "end": "2019-07-20 
19:18:57.200241", "msg": "non-zero return code", "rc": 1, "start": "2019-07-20 
19:18:52.459350", "stderr": "Traceback (most recent call last):\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/base/base.py\",
 line 213, in ensure_connection\nself.connect()\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/base/base.py\",
 line 189, in connect\nself.connection = 
self.get_new_connection(conn_params)\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/postgresql/base.py\",
 line 176, in get_new_connection\nconnection = 
Database.connect(**conn_params)\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/psycopg2/__init__.py\", 
line 130, in connect\nconn = _connect(dsn, 
connection_factory=connection_factory, **kwasync)\npsycopg2.OperationalError: 
fe_sendauth: no password supplied\n\n\nThe above exception was the direct cause 
of the following exception:\n\nTraceback (most recent call last):\n  File 
\"/settings.py\", line 91, in _ctit_db_wrapper\n  File \"/settings.py\", line 
447, in __getattr__\n  File \"/settings.py\", line 363, in _get_local\n  File 
\"/settings.py\", line 325, in _preload_cache\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/models/query.py\",
 line 250, in __iter__\nself._fetch_all()\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/models/query.py\",
 line 1121, in _fetch_all\nself._result_cache = 
list(self._iterable_class(self))\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/models/query.py\",
 line 53, in __iter__\nresults = 
compiler.execute_sql(chunked_fetch=self.chunked_fetch)\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/models/sql/compiler.py\",
 line 887, in execute_sql\ncursor = self.connection.cursor()\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/base/base.py\",
 line 254, in cursor\nreturn self._cursor()\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/base/base.py\",
 line 229, in _cursor\nself.ensure_connection()\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/base/base.py\",
 line 213, in ensure_connection\nself.connect()\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/utils.py\", 
line 94, in __exit__\nsix.reraise(dj_exc_type, dj_exc_value, traceback)\n  
File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/utils/six.py\", 
line 685, in reraise\nraise value.with_traceback(tb)\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/base/base.py\",
 line 213, in ensure_connection\nself.connect()\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/base/base.py\",
 line 189, in connect\nself.connection = 
self.get_new_connection(conn_params)\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/postgresql/base.py\",
 line 176, in get_new_connection\nconnection = 
Database.connect(**conn_params)\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/psycopg2/__init__.py\", 
line 130, in connect\nconn = _connect(dsn, 
connection_factory=connection_factory, 
**kwasync)\ndjango.db.utils.OperationalError: fe_sendauth: no password 
supplied\n\n\nDuring handling of the above exception, another exception 
occurred:\n\nTraceback (most recent call last):\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/base/base.py\",
 line 213, in ensure_connection\nself.connect()\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/base/base

[ansible-project] Ansible tower installation error !!

2019-07-20 Thread aditya singh
Hi recently i was trying to install Tower in centos7 bu t iam getting a 
error during the time of installation / Can i get some help ???


The Error I'm getting is this : 

TASK [awx_install : Migrate the Tower database schema (may take awhile when 
upgrading).] 

fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["awx-manage", 
"migrate", "--noinput"], "delta": "0:00:04.740891", "end": "2019-07-20 
19:18:57.200241", "msg": "non-zero return code", "rc": 1, "start": 
"2019-07-20 19:18:52.459350", "stderr": "Traceback (most recent call 
last):\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/base/base.py\",
 
line 213, in ensure_connection\nself.connect()\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/base/base.py\",
 
line 189, in connect\nself.connection = 
self.get_new_connection(conn_params)\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/postgresql/base.py\",
 
line 176, in get_new_connection\nconnection = 
Database.connect(**conn_params)\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/psycopg2/__init__.py\", 
line 130, in connect\nconn = _connect(dsn, 
connection_factory=connection_factory, 
**kwasync)\npsycopg2.OperationalError: fe_sendauth: no password 
supplied\n\n\nThe above exception was the direct cause of the following 
exception:\n\nTraceback (most recent call last):\n  File \"/settings.py\", 
line 91, in _ctit_db_wrapper\n  File \"/settings.py\", line 447, in 
__getattr__\n  File \"/settings.py\", line 363, in _get_local\n  File 
\"/settings.py\", line 325, in _preload_cache\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/models/query.py\",
 
line 250, in __iter__\nself._fetch_all()\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/models/query.py\",
 
line 1121, in _fetch_all\nself._result_cache = 
list(self._iterable_class(self))\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/models/query.py\",
 
line 53, in __iter__\nresults = 
compiler.execute_sql(chunked_fetch=self.chunked_fetch)\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/models/sql/compiler.py\",
 
line 887, in execute_sql\ncursor = self.connection.cursor()\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/base/base.py\",
 
line 254, in cursor\nreturn self._cursor()\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/base/base.py\",
 
line 229, in _cursor\nself.ensure_connection()\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/base/base.py\",
 
line 213, in ensure_connection\nself.connect()\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/utils.py\", 
line 94, in __exit__\nsix.reraise(dj_exc_type, dj_exc_value, 
traceback)\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/utils/six.py\", 
line 685, in reraise\nraise value.with_traceback(tb)\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/base/base.py\",
 
line 213, in ensure_connection\nself.connect()\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/base/base.py\",
 
line 189, in connect\nself.connection = 
self.get_new_connection(conn_params)\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/postgresql/base.py\",
 
line 176, in get_new_connection\nconnection = 
Database.connect(**conn_params)\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/psycopg2/__init__.py\", 
line 130, in connect\nconn = _connect(dsn, 
connection_factory=connection_factory, 
**kwasync)\ndjango.db.utils.OperationalError: fe_sendauth: no password 
supplied\n\n\nDuring handling of the above exception, another exception 
occurred:\n\nTraceback (most recent call last):\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/base/base.py\",
 
line 213, in ensure_connection\nself.connect()\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/base/base.py\",
 
line 189, in connect\nself.connection = 
self.get_new_connection(conn_params)\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/postgresql/base.py\",
 
line 176, in get_new_connection\nconnection = 
Database.connect(**conn_params)\n  File 
\"/var/lib/awx/venv/awx/lib64/python3.6/site-packages/psycopg2/__init__.py\", 
line 130, in connect\nconn = _connect(dsn, 
connection_factory=connection_factory, 
**kwasync)\npsycopg2.OperationalError: fe_sendauth: no password 
supplied\n\n\nThe above exception was the direct cause of the following 
exception:\n\nTraceback (most recent call last):\n  File 
\"/bin/awx-manage\", line 11, in \n  

Re: [ansible-project] Ansible tower integration with insight

2019-06-18 Thread Kai Stian Olstad

On 18.06.2019 10:20, Vino Thiyagu wrote:

Hello Folks,

Do anyone integrated ansible  tower with redhat insight recently, I 
have an
issue after scanned the host which is already registered in insight. 
tower

is not synced with insight.



This is a list for Ansible not Tower or Insight, please contact RedHat 
support.



--
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/b8b13d7188d5fa0123db26e283f9767a%40olstad.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible tower integration with insight

2019-06-18 Thread Vino Thiyagu
Hello Folks,

Do anyone integrated ansible  tower with redhat insight recently, I have an 
issue after scanned the host which is already registered in insight. tower 
is not synced with insight.


tower version - 3.4.3
insight (satellite) - 6.2

need your input please


-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f96206c4-662e-4a4d-af27-a660aac41608%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible Tower with windows AD

2019-06-11 Thread Jonathan Lozada De La Matta
Yes, you can start by looking at the documentation.

Jonathan Lozada De La Matta on mobile


From: Barun kumar 
Sent: Tuesday, June 11, 2019 2:02 AM
To: ansible-project@googlegroups.com; jloza...@redhat.com; m2nit...@gmail.com
Subject: Re: [ansible-project] Ansible Tower with windows AD

Hi Jlozadad,


Can you help us to integrate ansible tower to windows AD?



On Tue, 11 Jun 2019, 10:34 Kai Stian Olstad, 
mailto:ansible-project%2bl...@olstad.com>> 
wrote:
On 11.06.2019 04:11, Barun kumar wrote:
> Any idea how to integrate ansible tower with windows AD for AD user
> accounts login ??

This is not the list for Tower, please contact RedHat for Tower support.


--
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 
ansible-project+unsubscr...@googlegroups.com<mailto:ansible-project%2bunsubscr...@googlegroups.com>.
To post to this group, send email to 
ansible-project@googlegroups.com<mailto:ansible-project@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f0907e549b3b78464f6fbc55c1604a06%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/SN6PR08MB3984FE31115C85DA1506B821A6ED0%40SN6PR08MB3984.namprd08.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible Tower with windows AD

2019-06-10 Thread Barun kumar
Hi Jlozadad,


Can you help us to integrate ansible tower to windows AD?



On Tue, 11 Jun 2019, 10:34 Kai Stian Olstad, <
ansible-project+l...@olstad.com> wrote:

> On 11.06.2019 04:11, Barun kumar wrote:
> > Any idea how to integrate ansible tower with windows AD for AD user
> > accounts login ??
>
> This is not the list for Tower, please contact RedHat for Tower support.
>
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/f0907e549b3b78464f6fbc55c1604a06%40olstad.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CADG%3DkosmtVfoKfYZaeya%3DAdV_Ne8CDBJTimGStAb%3Dy2wSCreiw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible Tower with windows AD

2019-06-10 Thread Kai Stian Olstad

On 11.06.2019 04:11, Barun kumar wrote:

Any idea how to integrate ansible tower with windows AD for AD user
accounts login ??


This is not the list for Tower, please contact RedHat for Tower support.


--
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f0907e549b3b78464f6fbc55c1604a06%40olstad.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible Tower with windows AD

2019-06-10 Thread Barun kumar
All,

Any idea how to integrate ansible tower with windows AD for AD user
accounts login ??

Regards,
Barun Kumar

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CADG%3DkouW2dL69sOzTby%2BG%3DOSH5%2B8pu10ji63DGzJM6WpAUvQBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible tower export variable

2019-03-29 Thread Rafael Tomelin
Hi,

I need export variable the playbook for other playbook, this is possible?

I deploy virtual machine in Azure and after deploy my application.

Need deploy execute in 1 execution and not more deploys


-- 
Atenciosamente,

Rafael Tomelin
Tel.: 51-84104084
Skype: rafael.tomelin

LPI ID: LPI000191271

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAGEUqbBmxx0t%3DH%3DY_X82UnJtxkvfXQLUH%3DcYkPHaNchLg7%2Be_Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible Tower SAML Authentication

2019-03-22 Thread Jonathan Lozada De La Matta
Chanaka,

please reach support for this.

On Fri, Mar 22, 2019 at 2:48 PM Chanaka Samarajeewa 
wrote:

> Hello,
>
> I configured Tower to authenticate with OKTA via SAML . When I go to
> Tower's login page and click "Sign in with SAML" it functions correctly and
> takes me to Okta to sign in, then allows me into Tower after
> authenticating. However, If I initiate the process from OKTA by clicking
> the Tower app I setup, it doesn't work. I see "ERRORsocial u''. in the
> tower.log . Does anyone know what would cause this?
>
> Thanks
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/e89a2538-9b35-40dd-95c7-b87e5d9af586%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 

Jonathan lozada de la matta

AUTOMATION PRACTICE

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFYJA%2BJcy126t2Xx-Ai3q0L9WKfunfauADX_jG_Nqr-rDM%2BG_g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible Tower SAML Authentication

2019-03-22 Thread Chanaka Samarajeewa
Hello,

I configured Tower to authenticate with OKTA via SAML . When I go to 
Tower's login page and click "Sign in with SAML" it functions correctly and 
takes me to Okta to sign in, then allows me into Tower after 
authenticating. However, If I initiate the process from OKTA by clicking 
the Tower app I setup, it doesn't work. I see "ERRORsocial u''. in the 
tower.log . Does anyone know what would cause this?

Thanks

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e89a2538-9b35-40dd-95c7-b87e5d9af586%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible Tower Install Error

2019-03-18 Thread Jonathan Lozada De La Matta
https://access.redhat.com/


On Mon, Mar 18, 2019 at 6:47 AM Paul Woodhouse 
wrote:

> Thank you for your response, what is the process to contact support with
> this issue?
>
> On Friday, 15 March 2019 13:44:12 UTC, Jonathan Lozada De La Matta wrote:
>>
>> please reach support with assistance with this issue.
>>
>> On Fri, Mar 15, 2019 at 9:43 AM Paul Woodhouse 
>> wrote:
>>
>>> Hi, I am getting an error when attempting to install Ansible Tower via
>>> the setup.sh.  The error reads:
>>>
>>> ERROR! 'check_mode' is not a valid attribute for a Task
>>>
>>> The error appears to have been in
>>> '/home/user1/ansible-tower-setup-bundle-3.4.1-1.el7/roles/preflight/tasks/main.yml':
>>> line 32, column 3, but may
>>> be elsewhere in the file depending on the exact syntax problem.
>>>
>>> The offending line appears to be:
>>>
>>>
>>> - name: ensure that /var is not mounted w/ noexec
>>>   ^ here
>>>
>>>
>>> Any suggestions on how to resolve this?  OS is Ubuntu 16.04.6 LTS.
>>>
>>> --
>>> 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 ansible-proje...@googlegroups.com.
>>> To post to this group, send email to ansible...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/ansible-project/6ed77f62-bd21-4469-a202-c32f84c77f22%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
>>
>> Jonathan lozada de la matta
>>
>> AUTOMATION PRACTICE
>>
>>
>>
>>
>> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/9a7d1641-a5b6-460e-adfe-d2fc911bcabe%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 

Jonathan lozada de la matta

AUTOMATION PRACTICE

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFYJA%2BKFR5ad9A2YVQ1zqeSedfTPCtYMfj4%3DoOWgUmn9kO%2Bb%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible Tower Install Error

2019-03-18 Thread Paul Woodhouse
Thank you for your response, what is the process to contact support with 
this issue?

On Friday, 15 March 2019 13:44:12 UTC, Jonathan Lozada De La Matta wrote:
>
> please reach support with assistance with this issue.
>
> On Fri, Mar 15, 2019 at 9:43 AM Paul Woodhouse  > wrote:
>
>> Hi, I am getting an error when attempting to install Ansible Tower via 
>> the setup.sh.  The error reads:
>>
>> ERROR! 'check_mode' is not a valid attribute for a Task
>>
>> The error appears to have been in 
>> '/home/user1/ansible-tower-setup-bundle-3.4.1-1.el7/roles/preflight/tasks/main.yml':
>>  
>> line 32, column 3, but may
>> be elsewhere in the file depending on the exact syntax problem.
>>
>> The offending line appears to be:
>>
>>
>> - name: ensure that /var is not mounted w/ noexec
>>   ^ here
>>
>>
>> Any suggestions on how to resolve this?  OS is Ubuntu 16.04.6 LTS.
>>
>> -- 
>> 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 ansible-proje...@googlegroups.com .
>> To post to this group, send email to ansible...@googlegroups.com 
>> .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/6ed77f62-bd21-4469-a202-c32f84c77f22%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
>
> Jonathan lozada de la matta
>
> AUTOMATION PRACTICE
>
>
>  
>
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9a7d1641-a5b6-460e-adfe-d2fc911bcabe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible Tower Install Error

2019-03-15 Thread Jonathan Lozada De La Matta
please reach support with assistance with this issue.

On Fri, Mar 15, 2019 at 9:43 AM Paul Woodhouse 
wrote:

> Hi, I am getting an error when attempting to install Ansible Tower via the
> setup.sh.  The error reads:
>
> ERROR! 'check_mode' is not a valid attribute for a Task
>
> The error appears to have been in
> '/home/user1/ansible-tower-setup-bundle-3.4.1-1.el7/roles/preflight/tasks/main.yml':
> line 32, column 3, but may
> be elsewhere in the file depending on the exact syntax problem.
>
> The offending line appears to be:
>
>
> - name: ensure that /var is not mounted w/ noexec
>   ^ here
>
>
> Any suggestions on how to resolve this?  OS is Ubuntu 16.04.6 LTS.
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/6ed77f62-bd21-4469-a202-c32f84c77f22%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 

Jonathan lozada de la matta

AUTOMATION PRACTICE

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFYJA%2B%2BEDMZTZ%2BXno2MnxiQySb%2B_p_gy1v_q%2BgWFGhFNFBYwEw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible Tower Install Error

2019-03-15 Thread Paul Woodhouse
Hi, I am getting an error when attempting to install Ansible Tower via the 
setup.sh.  The error reads:

ERROR! 'check_mode' is not a valid attribute for a Task

The error appears to have been in 
'/home/user1/ansible-tower-setup-bundle-3.4.1-1.el7/roles/preflight/tasks/main.yml':
 
line 32, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


- name: ensure that /var is not mounted w/ noexec
  ^ here


Any suggestions on how to resolve this?  OS is Ubuntu 16.04.6 LTS.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6ed77f62-bd21-4469-a202-c32f84c77f22%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible Tower / AWX and project using roles/requirements.yml

2019-02-12 Thread ajfogg
Hi all,

I'm trying to figure out a development strategy for my team and how we 
produce our Ansible output.

We are using Ansible Tower (v3.3.1 but moving to v3.4.1 shortly) and an 
instance of Github Enterprise to hold our repositories.

I am trying to come up with a workable way of keeping our playbooks and 
roles separate. My current process is to make one github repo per role, so 
that anyone on the team can use / contribute to them directly.

I then wished to create a repo that contains all the playbooks, and a 
roles/requirements.yml, into which we would append new roles to as and when 
they are needed by any of the playbooks.

This playbooks repo is then loaded into Tower as a project, giving us a 
single project to source our playbooks from when creating job templates.

Initially, I was hoping I could make sub-directories for the playbooks, so 
they have their own unique requirements.yml file to stop Tower needing to 
pull down everything, but it doesn't appear to allow for this. Going with a 
top-level roles/requirements.yml is workable, but there is a problem I am 
yet to figure out how to resolve cleanly.

If I need to make an update to a role, perhaps a task needs changing, but 
the playbook repo is unaffected, I do not see a way of having Tower re-sync 
from github all the roles, unless I use the Delete on Update project 
setting. This bothers me because it seems inefficient having to remove all 
the local files and then download everything from git again, instead of 
just having git check what's different in the repositories specified in the 
requirements file.

My questions would be:
1. Is there a way to have a project trigger the git / ansible-galaxy check 
without using the Delete on Update option?
2. Is there a better way of achieving the role / playbook split in Tower 
than I've envisioned above? Our current way is one project per similar set 
of playbooks, so doing a Delete on Update isn't too big of an issue as 
we're only re-syncing one set of roles and not the whole lot. This works, 
but it makes the Projects library start to get quite cluttered.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c871917a-e976-44fa-8a4a-9c44c0b6ebe7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible Tower - Unable to delete host from inventory while job template is running (Scoped using limit).

2019-02-06 Thread mlturnbow1s
I hope I can post issues related to Ansible Tower here as well.  Please let 
me know if this is not the right place.

So the issue that I am seeing is as follows:

- I have an inventory in Ansible Tower called "Test Servers".
- I have a job template for the "Test Playbook" created and pointed at the 
inventory.  I have limit set as prompt on launch.

When building an new machine, we will call it Host B, the job template is 
run with the limit scoped to that specific host only and not the entire 
inventory.
If I try to delete Host A that was previously built and residing in the 
Test inventory, it says the resource is in use.

I thought by using a limit it wouldn't lock the inventory from changes, but 
rather just that host.
What is odd is that I can still add hosts to the inventory, but when I try 
to remove, I get the resource error.

Any thoughts?

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/d5f1785f-e9b9-4cee-9eb5-8d8a956d03dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] [ansible tower]how to pass EXTRA VARIABLES into the powershell script

2018-09-04 Thread LB
when i launch template with EXTRA VARIABLES tag: '201809051153', the 
powershell ps1 cannot invoke the tag. 

In following environment, by `cat 111.txt`, it is not display 
'201809051153', but '{ tag }'.

platform: ansible tower 2.6.2
playbook:
- hosts: all
  tasks:
 - name: test parameter
   script: test1.ps1
   args:
 executable: /usr/bin/pwsh
 chdir: ~

test1.ps1 content:
Write-Host {{ tag }} | Out-File ~/111.txt

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/d74e89d2-14a1-4a4e-91c3-4cd2733667f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible Tower Manual Project Options Inventory files

2018-04-25 Thread Saurabh
Hi All, 

I'm Creating Inventory in Ansible Tower and Project SCM are manually. 

In Inventory options i can't find source the hosts files from manually 
server. 

Any suggestion how can i use hosts file which is present in Ansible Tower 
server 

Regards
Saurabh 


-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a8e4c915-fe07-4394-a4ce-d0d70d7f7d72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible Tower Installation Error

2018-04-22 Thread pi co
Yeah, problem is permission. I was thought it would unnecessary while I'm 
running with root. Thanks

On Saturday, April 21, 2018 at 10:01:39 PM UTC+6:30, Benny Kusman wrote:
>
> IOError: [Errno 13] Permission denied: 
> '/usr/lib/python2.7/site-packages/sshuttle-0.78.4-py2.7.egg/EGG-INFO/entry_points.txt
>
> can you try to see the permission on the folder ?
>
> On Fri, Apr 20, 2018 at 3:36 PM, pi co > 
> wrote:
>
>> Hi, I'm start using Ansible for learning purpose. I got error again and 
>> again when I try to install Ansible Tower in my Cent OS 7. I'm using 
>> Ansible Tower Bundel for installation and get it from here : 
>> https://releases.ansible.com/ansible-tower/setup-bundle/
>>
>> Error are as below :
>>
>> TASK [awx_install : Migrate the Tower database schema (may take awhile 
>> when upgrading).] 
>> ***
>> [0;31mfatal: [localhost]: FAILED! => {"changed": true, "cmd": 
>> ["awx-manage", "migrate", "--noinput", "--fake-initial"], "delta": 
>> "0:00:01.466058", "end": "2018-04-20 12:16:57.314897", "msg": "non-zero 
>> return code", "rc": 1, "start": "2018-04-20 12:16:55.848839", "stderr": 
>> "Traceback (most recent call last):\n  File \"/bin/awx-manage\", line 9, in 
>> \nload_entry_point('awx==3.2.3', 'console_scripts', 
>> 'awx-manage')()\n  File \"/lib/python2.7/site-packages/awx/__init__.py\", 
>> line 91, in manage\n  File 
>> \"/lib/python2.7/site-packages/awx/__init__.py\", line 46, in 
>> prepare_env\n  File 
>> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/conf/__init__.py\",
>>  
>> line 48, in __getattr__\nself._setup(name)\n  File 
>> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/conf/__init__.py\",
>>  
>> line 44, in _setup\nself._wrapped = Settings(settings_module)\n  File 
>> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/conf/__init__.py\",
>>  
>> line 92, in __init__\nmod = 
>> importlib.import_module(self.SETTINGS_MODULE)\n  File 
>> \"/usr/lib64/python2.7/importlib/__init__.py\", line 37, in 
>> import_module\n__import__(name)\n  File 
>> \"/lib/python2.7/site-packages/awx/settings/production.py\", line 16, in 
>> \n  File \"/lib/python2.7/site-packages/awx/settings/defaults.py\", 
>> line 8, in \n  File 
>> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/djcelery/__init__.py\", 
>> line 34, in \nfrom celery import current_app as celery  # 
>> noqa\n  File 
>> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/five.py\", line 
>> 307, in __getattr__\nmodule = __import__(self._object_origins[name], 
>> None, None, [name])\n  File 
>> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/_state.py\", 
>> line 20, in \nfrom celery.utils.threads import LocalStack\n  
>> File 
>> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/utils/__init__.py\",
>>  
>> line 25, in \nfrom kombu.entity import Exchange, Queue\n  File 
>> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/kombu/entity.py\", line 
>> 13, in \nfrom .serialization import prepare_accept_content\n  
>> File 
>> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/kombu/serialization.py\",
>>  
>> line 454, in \nfor ep, args in 
>> entrypoints('kombu.serializers'):  # pragma: no cover\n  File 
>> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/kombu/utils/__init__.py\",
>>  
>> line 413, in \nreturn ((ep, ep.load()) for ep in 
>> iter_entry_points(namespace))\n  File 
>> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/__init__.py\",
>>  
>> line 726, in iter_entry_points\nentries = dist.get_entry_map(group)\n  
>> File 
>> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/__init__.py\",
>>  
>> line 2657, in get_entry_map\nself._get_metadata('entry_points.txt'), 
>> self\n  File 
>> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/__init__.py\",
>>  
>> line 2387, in parse_map\nfor group, lines in data:\n  File 
>> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/__init__.py\",
>>  
>> line 2985, in split_sections\nfor line in yield_lines(s):\n  File 
>> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/__init__.py\",
>>  
>> line 2247, in yield_lines\nfor ss in strs:\n  File 
>> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/__init__.py\",
>>  
>> line 2583, in _get_metadata\nfor line in 
>> self.get_metadata_lines(name):\n  File 
>> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/__init__.py\",
>>  
>> line 1473, in get_metadata_lines\nreturn 
>> yield_lines(self.get_metadata(name))\n  File 
>> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/__init__.py\",
>>  
>> line 1469, in get_metadata\nvalue = self._get(self._fn(self.egg_info, 
>> name))\n  File 
>> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/__init__.py\",
>>  
>> line 1578, in _get\

Re: [ansible-project] Ansible Tower Installation Error

2018-04-21 Thread Sosys
IOError: [Errno 13] Permission denied:
'/usr/lib/python2.7/site-packages/sshuttle-0.78.4-py2.7.egg/EGG-INFO/entry_points.txt

can you try to see the permission on the folder ?

On Fri, Apr 20, 2018 at 3:36 PM, pi co  wrote:

> Hi, I'm start using Ansible for learning purpose. I got error again and
> again when I try to install Ansible Tower in my Cent OS 7. I'm using
> Ansible Tower Bundel for installation and get it from here :
> https://releases.ansible.com/ansible-tower/setup-bundle/
>
> Error are as below :
>
> TASK [awx_install : Migrate the Tower database schema (may take awhile
> when upgrading).] **
> *
> [0;31mfatal: [localhost]: FAILED! => {"changed": true, "cmd":
> ["awx-manage", "migrate", "--noinput", "--fake-initial"], "delta":
> "0:00:01.466058", "end": "2018-04-20 12:16:57.314897", "msg": "non-zero
> return code", "rc": 1, "start": "2018-04-20 12:16:55.848839", "stderr":
> "Traceback (most recent call last):\n  File \"/bin/awx-manage\", line 9, in
> \nload_entry_point('awx==3.2.3', 'console_scripts',
> 'awx-manage')()\n  File \"/lib/python2.7/site-packages/awx/__init__.py\",
> line 91, in manage\n  File \"/lib/python2.7/site-packages/awx/__init__.py\",
> line 46, in prepare_env\n  File \"/var/lib/awx/venv/awx/lib/
> python2.7/site-packages/django/conf/__init__.py\", line 48, in
> __getattr__\nself._setup(name)\n  File \"/var/lib/awx/venv/awx/lib/
> python2.7/site-packages/django/conf/__init__.py\", line 44, in _setup\n
>   self._wrapped = Settings(settings_module)\n  File
> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/conf/__init__.py\",
> line 92, in __init__\nmod = 
> importlib.import_module(self.SETTINGS_MODULE)\n
> File \"/usr/lib64/python2.7/importlib/__init__.py\", line 37, in
> import_module\n__import__(name)\n  File \"/lib/python2.7/site-
> packages/awx/settings/production.py\", line 16, in \n  File
> \"/lib/python2.7/site-packages/awx/settings/defaults.py\", line 8, in
> \n  File 
> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/djcelery/__init__.py\",
> line 34, in \nfrom celery import current_app as celery  #
> noqa\n  File 
> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/five.py\",
> line 307, in __getattr__\nmodule = __import__(self._object_origins[name],
> None, None, [name])\n  File \"/var/lib/awx/venv/awx/lib/
> python2.7/site-packages/celery/_state.py\", line 20, in \n
> from celery.utils.threads import LocalStack\n  File
> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/utils/__init__.py\",
> line 25, in \nfrom kombu.entity import Exchange, Queue\n  File
> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/kombu/entity.py\",
> line 13, in \nfrom .serialization import
> prepare_accept_content\n  File \"/var/lib/awx/venv/awx/lib/
> python2.7/site-packages/kombu/serialization.py\", line 454, in
> \nfor ep, args in entrypoints('kombu.serializers'):  #
> pragma: no cover\n  File \"/var/lib/awx/venv/awx/lib/
> python2.7/site-packages/kombu/utils/__init__.py\", line 413, in
> \nreturn ((ep, ep.load()) for ep in
> iter_entry_points(namespace))\n  File \"/var/lib/awx/venv/awx/lib/
> python2.7/site-packages/pkg_resources/__init__.py\", line 726, in
> iter_entry_points\nentries = dist.get_entry_map(group)\n  File
> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/__init__.py\",
> line 2657, in get_entry_map\nself._get_metadata('entry_points.txt'),
> self\n  File 
> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/__init__.py\",
> line 2387, in parse_map\nfor group, lines in data:\n  File
> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/__init__.py\",
> line 2985, in split_sections\nfor line in yield_lines(s):\n  File
> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/__init__.py\",
> line 2247, in yield_lines\nfor ss in strs:\n  File
> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/__init__.py\",
> line 2583, in _get_metadata\nfor line in self.get_metadata_lines(name):\n
> File 
> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/__init__.py\",
> line 1473, in get_metadata_lines\nreturn 
> yield_lines(self.get_metadata(name))\n
> File 
> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/__init__.py\",
> line 1469, in get_metadata\nvalue = self._get(self._fn(self.egg_info,
> name))\n  File 
> \"/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/__init__.py\",
> line 1578, in _get\nwith open(path, 'rb') as stream:\nIOError: [Errno
> 13] Permission denied: '/usr/lib/python2.7/site-
> packages/sshuttle-0.78.4-py2.7.egg/EGG-INFO/entry_points.txt'",
> "stderr_lines": ["Traceback (most recent call last):", "  File
> \"/bin/awx-manage\", line 9, in ", "
> load_entry_point('awx==3.2.3', 'console_scripts', 'awx-manage')()", "  File
> \"/lib/python2.7/site-packages/awx/_

[ansible-project] Ansible Tower Installation Error

2018-04-20 Thread pi co
Hi, I'm start using Ansible for learning purpose. I got error again and 
again when I try to install Ansible Tower in my Cent OS 7. I'm using 
Ansible Tower Bundel for installation and get it from here 
: https://releases.ansible.com/ansible-tower/setup-bundle/

Error are as below :

TASK [awx_install : Migrate the Tower database schema (may take awhile when 
upgrading).] 
***
[0;31mfatal: [localhost]: FAILED! => {"changed": true, "cmd": 
["awx-manage", "migrate", "--noinput", "--fake-initial"], "delta": 
"0:00:01.466058", "end": "2018-04-20 12:16:57.314897", "msg": "non-zero 
return code", "rc": 1, "start": "2018-04-20 12:16:55.848839", "stderr": 
"Traceback (most recent call last):\n  File \"/bin/awx-manage\", line 9, in 
\nload_entry_point('awx==3.2.3', 'console_scripts', 
'awx-manage')()\n  File \"/lib/python2.7/site-packages/awx/__init__.py\", 
line 91, in manage\n  File 
\"/lib/python2.7/site-packages/awx/__init__.py\", line 46, in 
prepare_env\n  File 
\"/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/conf/__init__.py\", 
line 48, in __getattr__\nself._setup(name)\n  File 
\"/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/conf/__init__.py\", 
line 44, in _setup\nself._wrapped = Settings(settings_module)\n  File 
\"/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/conf/__init__.py\", 
line 92, in __init__\nmod = 
importlib.import_module(self.SETTINGS_MODULE)\n  File 
\"/usr/lib64/python2.7/importlib/__init__.py\", line 37, in 
import_module\n__import__(name)\n  File 
\"/lib/python2.7/site-packages/awx/settings/production.py\", line 16, in 
\n  File \"/lib/python2.7/site-packages/awx/settings/defaults.py\", 
line 8, in \n  File 
\"/var/lib/awx/venv/awx/lib/python2.7/site-packages/djcelery/__init__.py\", 
line 34, in \nfrom celery import current_app as celery  # 
noqa\n  File 
\"/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/five.py\", line 
307, in __getattr__\nmodule = __import__(self._object_origins[name], 
None, None, [name])\n  File 
\"/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/_state.py\", 
line 20, in \nfrom celery.utils.threads import LocalStack\n  
File 
\"/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/utils/__init__.py\", 
line 25, in \nfrom kombu.entity import Exchange, Queue\n  File 
\"/var/lib/awx/venv/awx/lib/python2.7/site-packages/kombu/entity.py\", line 
13, in \nfrom .serialization import prepare_accept_content\n  
File 
\"/var/lib/awx/venv/awx/lib/python2.7/site-packages/kombu/serialization.py\", 
line 454, in \nfor ep, args in 
entrypoints('kombu.serializers'):  # pragma: no cover\n  File 
\"/var/lib/awx/venv/awx/lib/python2.7/site-packages/kombu/utils/__init__.py\", 
line 413, in \nreturn ((ep, ep.load()) for ep in 
iter_entry_points(namespace))\n  File 
\"/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/__init__.py\",
 
line 726, in iter_entry_points\nentries = dist.get_entry_map(group)\n  
File 
\"/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/__init__.py\",
 
line 2657, in get_entry_map\nself._get_metadata('entry_points.txt'), 
self\n  File 
\"/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/__init__.py\",
 
line 2387, in parse_map\nfor group, lines in data:\n  File 
\"/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/__init__.py\",
 
line 2985, in split_sections\nfor line in yield_lines(s):\n  File 
\"/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/__init__.py\",
 
line 2247, in yield_lines\nfor ss in strs:\n  File 
\"/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/__init__.py\",
 
line 2583, in _get_metadata\nfor line in 
self.get_metadata_lines(name):\n  File 
\"/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/__init__.py\",
 
line 1473, in get_metadata_lines\nreturn 
yield_lines(self.get_metadata(name))\n  File 
\"/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/__init__.py\",
 
line 1469, in get_metadata\nvalue = self._get(self._fn(self.egg_info, 
name))\n  File 
\"/var/lib/awx/venv/awx/lib/python2.7/site-packages/pkg_resources/__init__.py\",
 
line 1578, in _get\nwith open(path, 'rb') as stream:\nIOError: [Errno 
13] Permission denied: 
'/usr/lib/python2.7/site-packages/sshuttle-0.78.4-py2.7.egg/EGG-INFO/entry_points.txt'",
 
"stderr_lines": ["Traceback (most recent call last):", "  File 
\"/bin/awx-manage\", line 9, in ", "
load_entry_point('awx==3.2.3', 'console_scripts', 'awx-manage')()", "  File 
\"/lib/python2.7/site-packages/awx/__init__.py\", line 91, in manage", "  
File \"/lib/python2.7/site-packages/awx/__init__.py\", line 46, in 
prepare_env", "  File 
\"/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/conf/__init__.py\", 
line 48, in __getattr__", "self._setup(name)", "  File 
\"/var/lib/awx/venv/awx/lib/pytho

Re: [ansible-project] Ansible Tower

2018-03-29 Thread Marcos Alano
What is the goal to change the default directory?

On Wed, Mar 28, 2018 at 4:26 AM, Binny  wrote:
> Hello,
>
> I am using Ansible Tower3. Is it mandatory to have all my playbooks under
> project directory?
>
> As while creating job template, i am only able to see those playbooks which
> are available on base project directory under Playbook selection dropdown.
>
> Can someone please shade some lights?
>
> Thanks
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/3aa22085-f76e-4639-830f-de8dffeea7ea%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
Marcos H. Alano
Linux System Administrator
marcoshal...@gmail.com

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAO3Us%3D%3DKVGyiv5PO0Vtp7E7x%2Bji1O_BfL-F%3D%3D9rkbx0K%3D3xiqQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible Tower install - unable to reach network

2018-03-29 Thread Camille Beaudou
Hi all,

Sorry in advance if this issue have already been solved (i've been looking 
for answers for few days already) or if i am not asking this in the right 
place.

I'm trying to install Ansible Tower on a Ubuntu 16.04 VM (with VMWare). The 
host computer works with Windows 7 Pro. For the installation, i'm following 
the "readme" file instructions of the foldre i downloaded on ansible 
website.
When i execute setup.sh, i get the following error at some point :

TASK [packages_ubuntu : install apt repository keys] 
***
failed: [localhost] (item={u'url': 
u'https://www.postgresql.org/media/keys/ACCC4CF8.asc'}) => {"changed": 
false, "item": {"url": 
"https://www.postgresql.org/media/keys/ACCC4CF8.asc"}, "msg": "Failed to 
connect to www.postgresql.org at port 443: [Errno 101] Network is 
unreachable"}
failed: [localhost] (item={u'id': u'0x6B73A36E6026DFCA', u'keyserver': 
u'hkps.pool.sks-keyservers.net'}) => {"changed": false, "cmd": 
"/usr/bin/apt-key adv --keyserver hkps.pool.sks-keyservers.net --recv 
6B73A36E6026DFCA", "item": {"id": "0x6B73A36E6026DFCA", "keyserver": 
"hkps.pool.sks-keyservers.net"}, "msg": "Error fetching key 
6B73A36E6026DFCA from keyserver: hkps.pool.sks-keyservers.net", "rc": 2, 
"stderr": "gpg: requesting key 6026DFCA from hkp server 
hkps.pool.sks-keyservers.net\ngpg: keyserver timed out\ngpg: keyserver 
receive failed: keyserver error\n", "stderr_lines": ["gpg: requesting key 
6026DFCA from hkp server hkps.pool.sks-keyservers.net", "gpg: keyserver 
timed out", "gpg: keyserver receive failed: keyserver error"], "stdout": 
"Executing: /tmp/tmp.ZNclEqfh7B/gpg.1.sh 
--keyserver\nhkps.pool.sks-keyservers.net\n--recv\n6B73A36E6026DFCA\n", 
"stdout_lines": ["Executing: /tmp/tmp.ZNclEqfh7B/gpg.1.sh --keyserver", 
"hkps.pool.sks-keyservers.net", "--recv", "6B73A36E6026DFCA"]}
failed: [localhost] (item={u'url': 
u'https://releases.ansible.com/keys/442667A9.asc'}) => {"changed": false, 
"item": {"url": "https://releases.ansible.com/keys/442667A9.asc"}, "msg": 
"Failed to connect to releases.ansible.com at port 443: [Errno 101] Network 
is unreachable"}

I think that may be a proxy issue, as the proxy of the place i work is 
quite restrictive. I already tried 
export http_proxy="..."
but it didn't solve the problem.

When i test network access with a get_url, it works :
camille@ubuntu: ~$ ansible -m get_url -a "dest=~/Desktop 
url=http://www.google.com"; localhost
localhost | SUCCESS => {
"changed": true, 
"checksum_dest": "20902e9940341e5b1b52f1942246ea2e8777ddbb", 
"checksum_src": "bc4f86bc86d62356013c6f3d79e2e60a615b0c25", 
"dest": "/home/camille/Desktop/index.html", 
"gid": 1000, 
"group": "camille", 
"md5sum": "75bd8c115da6968aa17812ab6dbc4c4f", 
"mode": "0664", 
"msg": "OK (unknown bytes)", 
"owner": "camille", 
"size": 10948, 
"src": "/tmp/tmpWgOcrl", 
"state": "file", 
"status_code": 200, 
"uid": 1000, 
"url": "http://www.google.com";
}


Do someone have any clue about this ?

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5868a9ee-eeca-4321-a361-3ea2317005fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible Tower

2018-03-28 Thread Binny
Hello,

I am using Ansible Tower3. Is it mandatory to have all my playbooks under 
project directory?

As while creating job template, i am only able to see those playbooks which 
are available on base project directory under Playbook selection dropdown.

Can someone please shade some lights?

Thanks  

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/3aa22085-f76e-4639-830f-de8dffeea7ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible Tower setup takes up to half hour

2018-03-22 Thread Santhosh Thumma
Hello Guys, 

I'm trying to install ansible tower on one of my nodes and it takes very 
long to finish. 

I'm running the setup.sh from this file, 
http://releases.ansible.com/ansible-tower/setup/ansible-tower-setup-latest.tar.gz.

The setup.sh has lot of tasks to execute and it hangs for sometime at, 
"Migrate the tower to database schema". 

Half hour is really painful for me, did anyone experience this issue? And 
if someone could find a way to finish the setup early, it's really 
aprreciable.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0d6bd4c8-b83d-4248-9134-971ff39d6306%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible Tower Job Output via api

2018-02-26 Thread smitconsultant2017
Hi 

I am looking for a way to get output of ansible tower job. I was looking at 
rest Api v 2 and can see jobs and templates. The aim is to run the job in 
tower and if failed send the output in email as part of master playbook. I 
could not find out how to get output of the job currently running and how 
should I define it in my playbook at fail. I know you can find job output 
if you know job id and you can use tower/api/v2/jobs/job-id. Has anyone 
used this feature and know how can I achieve it? Thanks

Regards,

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7fae768c-4a83-4164-b690-f3f87ff7ffdf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible Tower can't reach SCM source or remote host.

2018-02-08 Thread Pranav Baitule
Hello,

I have installed Ansible Tower on Ubuntu using Windows Subsystem for Linux. 

Starting an SCM update or running a playbook against a remote host gives me 
the following error - 


Can't create signalfd: Function not implemented
Failed to make / slave: Invalid argument

How can I fix this?

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a50a1cca-9d47-4b9b-841d-25e78c5fbb2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible Tower Installation failed in RHEL 7.4 with error pkg_resources.DistributionNotFound: awx==3.2.2

2018-02-01 Thread Triển Lập Lâm
Hi all

The installation fails in the step "Migrate the Tower database schema" 
after run file  setup.sh in ansible-tower-setup-3.2.2

May I miss any setting ?
Please help me to take a look.

Thanks


TASK [awx_install : Stop supervisor] 
***
ok: [localhost] => {"changed": false, "name": "supervisord", "state": 
"stopped", "status": {"ActiveEnterTimestampMonotonic": "0", 
"ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": 
"systemd-journald.socket system.slice basic.target rc-local.service 
nss-user-lookup.target", "AllowIsolate": "no", "AmbientCapabilities": "0", 
"AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": 
"shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": 
"18446744073709551615", "CPUAccounting": "no", "CPUQuotaPerSecUSec": 
"infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", 
"CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", 
"CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", 
"CapabilityBoundingSet": "18446744073709551615", "ConditionResult": "no", 
"ConditionTimestampMonotonic": "0", "Conflicts": "shutdown.target", 
"ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", 
"Description": "Process Monitoring and Control Daemon", "DevicePolicy": 
"auto", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", 
"ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", 
"ExecMainStatus": "0", "ExecStart": "{ path=/usr/bin/supervisord ; 
argv[]=/usr/bin/supervisord -c /etc/supervisord.conf ; ignore_errors=no ; 
start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", 
"FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": 
"/usr/lib/systemd/system/supervisord.service", "GuessMainPID": "yes", 
"IOScheduling": "0", "Id": "supervisord.service", "IgnoreOnIsolate": "no", 
"IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", 
"InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": 
"0", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": 
"control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", 
"LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", 
"LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", 
"LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", 
"LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", 
"LimitNPROC": "2063094", "LimitRSS": "18446744073709551615", "LimitRTPRIO": 
"0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "2063094", 
"LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": 
"0", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", 
"MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": 
"supervisord.service", "NeedDaemonReload": "no", "Nice": "0", 
"NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", 
"OOMScoreAdjust": "0", "OnFailureJobMode": "replace", 
"PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": 
"no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", 
"RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": 
"no", "Requires": "basic.target", "Restart": "no", "RestartUSec": "100ms", 
"Result": "success", "RootDirectoryStartOnly": "no", 
"RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": 
"0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", 
"StandardError": "inherit", "StandardInput": "null", "StandardOutput": 
"journal", "StartLimitAction": "none", "StartLimitBurst": "5", 
"StartLimitInterval": "1000", "StartupBlockIOWeight": 
"18446744073709551615", "StartupCPUShares": "18446744073709551615", 
"StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", 
"SyslogLevelPrefix": "yes", "SyslogPriority": "30", 
"SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", 
"TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": 
"18446744073709551615", "TasksMax": "18446744073709551615", 
"TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", 
"TimerSlackNSec": "5", "Transient": "no", "Type": "forking", "UMask": 
"0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "Wants": 
"system.slice", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}}

TASK [awx_install : Wait for supervisor to stop.] 
**
ok: [localhost] => {"attempts": 1, "changed": false, "stat": {"exists": 
false}}

TASK [awx_install : Migrate the Tower database schema (may take awhile when 
upgrading).] 
***
fatal: [localhost]: FAILED! => {"changed": true, "

Re: [ansible-project] Ansible Tower installation as DR mode

2018-01-11 Thread Vijay Chaudhery
Ok I got it thanks

On Jan 11, 2018 3:27 AM, "Pshem Kowalczyk"  wrote:

> All Tower instances must be able to access the same database. If you can
> ensure that you can have Tower instances in different sites (or
> availability zones).
>
> kind regards
> Pshem
>
>
> On Thu, 11 Jan 2018 at 17:44 Vijay Choudhary 
> wrote:
>
>> Hi, just want to know can we install Ansilbe tower server with DR site
>> mode? Or can we install ansilbe tower nodes on multiple data center?
>>
>> --
>> 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 ansible-project+unsubscr...@googlegroups.com.
>> To post to this group, send email to ansible-project@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/ansible-project/118f513f-b56e-4859-a1d9-
>> 57301a2c97c0%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/ansible-project/GIFhLYy4kpc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/ansible-project/CAEaZiRWGLn75TuNK%3D8758h3hW2DNM6Gu8jXDggxjKF_
> gDhtHGA%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CALi%2BLO%2BCeYNdJyhOK2B%2Bt0d6LRE7SyAD1yWoYxvH_9DoNg-Y%3Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible Tower installation as DR mode

2018-01-11 Thread Pshem Kowalczyk
All Tower instances must be able to access the same database. If you can
ensure that you can have Tower instances in different sites (or
availability zones).

kind regards
Pshem


On Thu, 11 Jan 2018 at 17:44 Vijay Choudhary 
wrote:

> Hi, just want to know can we install Ansilbe tower server with DR site
> mode? Or can we install ansilbe tower nodes on multiple data center?
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/118f513f-b56e-4859-a1d9-57301a2c97c0%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAEaZiRWGLn75TuNK%3D8758h3hW2DNM6Gu8jXDggxjKF_gDhtHGA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible Tower installation as DR mode

2018-01-10 Thread Vijay Choudhary
Hi, just want to know can we install Ansilbe tower server with DR site 
mode? Or can we install ansilbe tower nodes on multiple data center?

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/118f513f-b56e-4859-a1d9-57301a2c97c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible Tower vault issues

2018-01-02 Thread nbmprivat
Hi there,

I've setup Ansible Tower and imported a ansible project from a Git 
repository.

Credentials for localhost and vault (prompt) have been added.

The playbook normally runs like this: 

ansible-playbook Playbooks/vsphere-vm-provisioning/deploy-tmc.yml --ask-
vault-pas

The output in Tower after entering the vault pass:

Enter passphrase for /tmp/awx_5_OU8MlQ/credential_3: 
Bad passphrase, try again for /tmp/awx_5_OU8MlQ/credential_3

My roles only use encrypted variables in main.yml in the vars folder.


Anybody know what is wrong? 


Thanks in advance.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/38816442-abe0-4924-b3d2-fb6fa1ad6fba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible Tower - LDAP

2017-11-17 Thread Shaun Glass
Good Day,

I am trying to connect Tower to our LDAP Server (AD). I have captured 
tcpdumps and can see it is connecting; searching and finding records but 
the actual authentication is not occurring. Can anyone assist in this 
matter ?

I have the following populated, apart for the normal connection details :

LDAP USER SEARCH
LDAP GROUP SEARCH
LDAP USER ATTRIBUTE MAP

I have tried the following for LDAP GROUP TYPE :

MemberDNGroupType
Active DirectoryGroupType

Regards

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/94e5a59a-c958-41ce-85a9-95b8bcce3aad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible Tower playbook credential question

2017-11-16 Thread Qingyu Hu
Hey gang

New kid on the block here. Not sure if this is the right forum to ask 
questions regarding ansible towers, I know I can contact support and I have 
emailed them but I was hoping there are wiser gurus out here that can help 
answer my question.


So the question is this: I am demoing tower for my company and tower has 
it's encrypted credential in the database which I really like the idea of. 
I am building a simple provision VM play book but vmware_guest requires the 
username and password entry. So how do I reference/use my stored credential 
in ansible tower database? I have selected the correct credential in the 
template for the job but the error is saying I must have user name and 
password defined in the playbook. Is there a variable in the playbook where 
I can reference tower's password? 

only thing I found online is to encrypt the password in vault and program 
the vault password and use that in the template. That's just lame because 
now I got 2 place to manage password and vault is less secure because there 
is only 1 password and no RBAC.

thanks in advance!

chang


-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0d984d36-4f80-4dca-b53b-d46b09d3c361%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible Tower, require approval in workflow

2017-11-09 Thread Rod Oliver
Does Ansible Tower support some kind of approval check in workflows? The 
use case that I have in mind is to use a workflow to roll out a change 
request, but to only run the workflow which pulls the trigger on 
implementation when approval is explicitly obtained.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1767dfcb-10b4-45d2-9ab9-051749da21df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible Tower Manual Scripts

2017-11-06 Thread asadrajput . pk
Hey, I wana ask question that. I have created some scripts into the 
/var/lib/awx/projects this is the manual directory of ansible tower and the 
scripts are for REST API CALL for openstack cloud to create 
instances,group,projects etc.
and the scripts are running fine tower is running jobs and creating the 
required tasks into openstack. I want to know that if i want to edit some 
parameters of scripts rather than going to directory and changing that 
parameters over there. Is there any method by which i can change the 
scripts parameter from ansible tower dashboard and than that information is 
passed into the script which is in YAML format. help please

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9764df22-88b3-475e-8535-eaba99b05cf4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible Tower Inventory clarification

2017-10-25 Thread anoop vc
How will I specify the credentials to be used for a group of machines using 
ansible tower UI. if it is single machine, I can create a credential and 
select it in template. if it is a group of machine, Do I need to use the 
same username on all machines??

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/59d121ba-65a8-4997-9c36-6ea1eac5a521%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible Tower - Isolated Nodes

2017-10-23 Thread Harkanwal Johar
Hello

Need help with new feature Ansible Tower - Isolated Nodes.

I am wondering isolated node acts as jump server for executing the
configuration or configuration can be synced to isolated node and later
executed from the isolated configuration.


Best Regards,

Harkanwal

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAP0cdgnwphDsroGvMa1eOoJmPxWEbCL-_1%2BTM6zyE93Xsb_PuA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible Tower Playbook issue: need to limit SSH connections to specific Cisco switch hosts within each task

2017-09-12 Thread mark . kleinhaus
I'm new to Ansible Automation and hopefully this is a simple fix-

Running Ansible Tower 2.4.4 on Windows Server 2012 R2. 
I'm using the ios_command and ios_config modules. 

I have a group called "XYZ" that contains hosts "1.1.1.1" and "2.2.2.2". I 
want each task in the playbook to only attempt SSH to a specific host 
within the group. 

Here's the problem:
-The playbook will attempt to SSH to all hosts in the group by default on 
the first task. It will succeed on the first host specified with vars, but 
fail on every host after, even if I'm passing through the creds correctly. 
-I need to set "connection": to "local" for the ios_command, and ios_config 
modules to work. However if I try to use the "delegate_to" command, it 
fails because it wants to SSH but sees the connection as local. 

Is there any way to limit the playbook connections to a specific host 
within each task? I don't want to create a separate playbook for each host, 
and I don't want to create a separate group for each host within Ansible 
Tower. 

Sample config:

- name: XYZ SSH Test
  hosts: XYZ
  connection: local
  gather_facts: false
  vars:
1Switch:
  host: "1.1.1.1"
  username: "{{1user}}"
  password: "{{1pass}}"
  timeout: 60
   2Switch:
  host: "2.2.2.2"
  username: "{{2user}}"
  password: "{{2pass}}"
  timeout: 60
  tasks:
#get an interface on 1.1.1.1
- name: Get 1.1.1.1 interface status
  run_once: true
  delegate_to: 1.1.1.1
  ios_command:
   commands: show interface gi1/0/1
   provider: "{{ 1Switch }}"
  register: gi1_0_1
#get an interface on 2.2.2.2
- name: Get 2.2.2.2 interface status
  run_once: true
  delegate_to: 2.2.2.2
  ios_command:
   commands: show interface Gig 2/0/2
   provider: "{{ 2Switch }}"
  register: gi2_0_2



-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/87214f48-8c3e-4b29-b8a7-a6e2519ac196%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible Tower

2017-09-11 Thread Soniya panwar


Can you please help me about these feature of Ansible Tower:

 

1)  Can Ansible tower automatically upgrade any software when the 
latest version has come over a period?.

2)  Can Ansible tower do monitoring like Zabbix do?

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/276b9bea-8b8b-493a-acee-e544fac6ccb3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible tower inventories and variables

2017-08-16 Thread Andrew Latham
For tower questions and support please utilize https://access.redhat.
com/products/ansible-tower-red-hat

This mailing list is for the open source Ansible project.


On Wed, Aug 16, 2017 at 10:03 AM, Asil Carlin  wrote:

> We've implemented the directory structure for multi-stage environments as
> per the digital ocean blogpost
> 
>
> The inventory files and roles vars are separated out in this manner and
> kept in version control.
> Tower seems to want us to import the vars as per the docs here
> 
> .
>
> Is there any way to get tower to use the environment specific inventores
> and their relative group_vars and host_vars directories?
>
> Regards,
>
> Asil
>

-- 
- Andrew "lathama" Latham -

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2Bqj4S8ubmSmPsvv3ucaUc7VwOZ7%3DZD0Rwr6Nnc2Y-1hNk-ibA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


  1   2   >