i have this ansible structure its part of large codebase :
it seems that when running the main playbook the defaults/main.yml
app_type:game
don't pass on to the current_version.yml and give error
why it doesn't use the default var in defaults/main.yml
also when i pass the same variable name
hello all
i have a simple web page that invokes the ansible job via command line
as high level idea how can i reflect some progress from the ansible job to
the web page
can i set some callbacks or any other idea?
I'm not using API I'm running playbook as Linux cli .
Thanks
--
You received
i have this task which should create random dir download file to the random
dir
but I keep getting an error on the regexp :
---
- name: check if exists
hosts: localhost
gather_facts: false
tasks:
- debug:
msg:
now i facing a new problem as the playbook is in inner directory and the
role is in the main dir
and it seams ansible don't see it
is there way to access the main roles dir ? ( the one under ansible dir )
On Wednesday, May 6, 2020 at 2:38:58 PM UTC+3, Meir Yanovich wrote:
>
> Thanks
Thanks allot for your quick answers and help
On Wednesday, May 6, 2020 at 1:20:30 PM UTC+3, Meir Yanovich wrote:
>
> I try to include_rule but i keep getting errors on the wrong syntax
> this is my file structure :
>
>
> ├── roles
> │ └── utilities
>
at 2:12:06 PM UTC+3, Stefan Hornburg (Racke)
wrote:
>
> On 5/6/20 1:06 PM, Meir Yanovich wrote:
> > i see ,
> > in my vars: i will refer to those variable names ? not the module
> properties?
> >
>
> Your variable names in the vars block match the module pr
i see ,
in my vars: i will refer to those variable names ? not the module
properties?
On Wednesday, May 6, 2020 at 2:02:57 PM UTC+3, Stefan Hornburg (Racke)
wrote:
>
> On 5/6/20 12:57 PM, Meir Yanovich wrote:
> > Thanks for your fast replay , but now
> > when i
_facility': 'LOG_USER',
'_ansible_tmpdir':
'/home/ec2-user/.ansible/tmp/ansible-tmp-1588762539.1880841-18280-15848856136034/',
'_ansible_verbosity': 3,
'_ansible_version': '2.9.7',
'dest': 'tmp',
'group': 'tmp',
'owner': 'tmp',
'url': 'tmp',
'url_password': 'tmp',
'url_username': 'temp'}
I try to include_rule but i keep getting errors on the wrong syntax
this is my file structure :
├── roles
│ └── utilities
│ ├── defaults
│ ├── files
│ ├── handlers
│ ├── meta
│ ├── tasks
│ │ └── d_pack.yml
│ ├──
i have this ansible simple playbook :
where "/home/ec2-user/test1.txt" exists on disk
---
- name: check if exsist
hosts: localhost
gather_facts: false
tasks:
- name: Get project name
shell: "echo ''"
register: name_var
>> We've recently made some changes to ensure that variables are legal.
>>> Likely you just want:
>>>
>>> `register: login_app`
>>>
>>> On Mon, May 4, 2020 at 1:16 PM Meir Yanovich >> > wrote:
>>>
>>>> i have old cod
ow post seeming to indicate it was a feature. However,
> that is incorrect.
>
> Whatever you expected it to do, never worked to begin with.
>
> On Mon, May 4, 2020 at 1:50 PM Meir Yanovich > wrote:
>
>> Then it failed when I remove it and when
>> The register var is
gt;
> Whatever you expected it to do, never worked to begin with.
>
> On Mon, May 4, 2020 at 1:50 PM Meir Yanovich wrote:
>
>> Then it failed when I remove it and when
>> The register var is not set ,
>> So basically what is the right way to do it ?
>> The same fu
med
> `login_app set_when_task_skipped=false`
>
> `set_when_task_skipped` isn't a feature of Ansible.
>
> We've recently made some changes to ensure that variables are legal.
> Likely you just want:
>
> `register: login_app`
>
> On Mon, May 4, 2020 at 1:16 PM Meir Yanovich wrot
i have old code which use set_when_task_skipped=false in register
now it is not supported any more
I'm getting on :
- name: Find location
register: login_app set_when_task_skipped=false
when: result.stat.exists == True
fatal: [10.0.4.211]: FAILED! =>
msg: 'Invalid variable name in
://docs.ansible.com/ansible/latest/user_guide/playbooks_debugger.html
in fact, I think it is the most helpful link in ansible ecosystem.!
as this how you have suddenly eyes and can understand what is going on !
On Saturday, May 2, 2020 at 6:13:41 PM UTC+3, Meir Yanovich wrote:
>
> hello al
est
tags:
- packages
- name: Ensure botocore and boto3 modules are installed
pip:
name: [ "boto3", "botocore"]
extra_args: "--user"
On Saturday, May 2, 2020 at 6:39:30 PM UTC+3, Meir Yanovich wrote:
>
> after updating ansib
t;/home/ec2-user/app_virtualenv/lib/python3.7/site-packages/botocore/endpoint.py",
line 132, in _send_request
request = self.create_request(request_dict, operation_model)
File
"/home/ec2-user/app_virtualenv/lib/python3.7/site-packages/botocore/endpoint.py",
line
hello all
im upgrading python from 2.7 to python 3.7
and now I'm getting error when using aws API on module : module:
ec2_instance_facts
- name: Get facts
local_action:
module: ec2_instance_facts
instance_ids:
- "xxx"
region: "xx"
register: instance
ansible
ok i found this question that has been ask before
https://github.com/ansible/ansible/issues/34135
can you point me to some example using downloading the backet localy and
then copy it to windows ?
On Friday, April 17, 2020 at 9:51:56 PM UTC+3, Jordan Borean wrote:
>
> You can’t run Python
also why the fall back dosn't work ? why does't it download from the web
i mean the rescue block.
On Friday, April 17, 2020 at 10:22:18 PM UTC+3, Meir Yanovich wrote:
>
> didn't know that ,
> How do i connect to s3 and download file using user/password ?
>
>
> On Friday, A
didn't know that ,
How do i connect to s3 and download file using user/password ?
On Friday, April 17, 2020 at 9:51:56 PM UTC+3, Jordan Borean wrote:
>
> You can’t run Python modules on Windows so this was never designed to work
> on those hosts.
--
You received this message because you are
this block working fine in Linux !
i trying to use aws_s3 to download package and using fall back to download
from web if its fail
but im getting error which is hard to understand and pin point the couse of
the error :
i present only the prablematic code as it is pard of very big ansible
23 matches
Mail list logo