Re: [ansible-project] Create variables in hash

2019-01-28 Thread Rafael Tomelin
password' | password_hash('sha512', 65534 | > random(seed=inventory_hostname) | string) }} > > > > On Fri, Jan 25, 2019 at 8:11 PM Rafael Tomelin > wrote: > > > > Hi dear, > > > > How can create variables in hash, example: > > > > --- >

[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

[ansible-project] Generate resgiter from dict var

2019-02-06 Thread Rafael Tomelin
destination_port_range: 443 access: Allow priority: 90 direction: Inbound I need, put the content in variable. Is need to security_group in azure or aws. -- Atenciosamente, Rafael Tomelin Tel.: 51-84104084 Skype: rafael.tomelin LPI ID: LPI000191271 -- You received this message

Re: [ansible-project] Tags in loop

2019-01-29 Thread Rafael Tomelin
If you mean AWS tags, most resource modules provide a "tags" attribute, if > the resource supports tags. Some resources (generally those with IDs) can be > tagged using the ec2_tag module. > > Regards, K. > > > On Tue, Jan 29, 2019 at 11:25 PM Rafael Tomelin > w

[ansible-project] Create variables in hash

2019-01-25 Thread Rafael Tomelin
Hi dear, How can create variables in hash, example: --- # vars file for roles my_var_root: my_sub_var: name: example env: environment key: my_key And how, pull in code? -- Atenciosamente, Rafael Tomelin Tel.: 51-84104084 Skype: rafael.tomelin LPI ID: LPI000191271

[ansible-project] Defined variable when value different

2019-02-01 Thread Rafael Tomelin
alse* with_sequence: count=3 #"{{networkinterface_number}}" -- 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 r

[ansible-project] Callback with grafana

2019-01-30 Thread Rafael Tomelin
file: /etc/ansible/callback_plugins/grafana_annotations.py What may be the problem? -- Atenciosamente, Rafael Tomelin skype: rafael.tomelin E-mail: rafael.tome...@gmail.com RHCE - Red Hat Certified Engineer PPT-205 - Puppet Certified Professional 2017 Zabbix- ZABBIX Certified

[ansible-project] Re: Callback with grafana

2019-01-30 Thread Rafael Tomelin
:36, Rafael Tomelin escreveu: > Hello guys, > > I'm trying to set up callback not available from the ' > https://blog.octo.com/en/walkthrough-watch-your-ansible-deployments-in-grafana/' > link, but it is not working and displays the following message: > > [DEPRECATI

Re: [ansible-project] Defined variable when value different

2019-02-04 Thread Rafael Tomelin
y_subnet > ip_configurations: > - name: ipconfig{{item}} > public_ip_address_name: "{{ get_ip_public.state.name }}" > primary: False > with_sequence: start=1 end=networkinterface_numberminus1 > vars: > networkinterface_numberminus1: networkinterface_number - 1 > >

Re: [ansible-project] Defined variable when value different

2019-02-04 Thread Rafael Tomelin
ace_number}}" But, myvar not replace in loop with_sequence. On Mon, Feb 4, 2019 at 8:55 AM Keif Gwinn wrote: > multiple blocks with the when: keyword? > > On Fri, 1 Feb 2019 at 19:37, Rafael Tomelin > wrote: > >> Hi, >> >> How defined variable value wh

Re: [ansible-project] Defined variable when value different

2019-02-04 Thread Rafael Tomelin
gt; public_ip_address_name: "{{ get_ip_public.state.name }}" > primary: False > with_sequence: start=1 end=networkinterface_number > > > Would be my suggestion, it looks like it'd need some work around the IP > address assignments. > > On Mon, 4 Feb 2019 at 12:10, Ra

[ansible-project] Tags in loop

2019-01-29 Thread Rafael Tomelin
Hi dear, I need create tag in my role, this example: vars/main.yml name_variable: tags: key1: value1 key2: value2 in tasks taks/main.yml - name: name my task user: name tags: tags from vars how can create this tags? -- Atenciosamente, Rafael Tomelin Tel.: 51

Re: [ansible-project] Defined variable when value different

2019-02-04 Thread Rafael Tomelin
_address_name: "{{ get_ip_public.state.name }}" > primary: False > with_sequence: start=1 end=networkinterface_number > > > Would be my suggestion, it looks like it'd need some work around the IP > address assignments. > > On Mon, 4 Feb 2019 at 12:10, Rafael Tomelin > wrote: &

[ansible-project] Role requiments other roles

2019-05-17 Thread Rafael Tomelin
Hi, I create new role for deploy services in cloud. My role requirement role azure.azure_preview_modules, but can`t execute. Not possible configuration with dependencies but execution role. How is create requirement in role other role? -- Atenciosamente, Rafael Tomelin Tel.: 51-984104084

[ansible-project] Create module ansible

2019-07-04 Thread Rafael Tomelin
;: "str" }, "purpose": {"default": True, "type": "str" }, "resource": {"required": True, "type": "str" }, "acronym": {"default": True, "type":

[ansible-project] Create custom facts in windows

2019-04-09 Thread Rafael Tomelin
Hi, I need create custom facts in windows, but where directory create in windows for customs facts? How set path custom facts in windows in ansible? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop

Re: [ansible-project] Used variable groups and users in iventory

2019-07-01 Thread Rafael Tomelin
OK, But this problem is equaled in AWX management ansible. On Mon, Jul 1, 2019 at 3:22 PM Kai Stian Olstad < ansible-project+l...@olstad.com> wrote: > On 01.07.2019 20:12, Rafael Tomelin wrote: > > Dears, > > > > I am using Ansible Tower for management ansible. I am

[ansible-project] Used variable groups and users in iventory

2019-07-01 Thread Rafael Tomelin
Dears, I am using Ansible Tower for management ansible. I am with a problem because put variables (groups and hosts) in inventory but not load in jobs. How can loaded variables in groups and hosts from inventory? -- Atenciosamente, Rafael Tomelin Tel.: 51-984104084 Skype: rafael.tomelin

[ansible-project] Loop with hostvars groups

2019-08-27 Thread Rafael Tomelin
].ansible_hostname }}/32 trust {% endfor %} My error "msg": "AnsibleUndefinedVariable: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible_hostname'", What`s correct configuration? -- Atenciosamente, Rafael Tomelin Tel.: 51-984104084 Skype: ra

Re: [ansible-project] Loop with hostvars groups

2019-08-27 Thread Rafael Tomelin
put your playbook here > > On Tue, 27 Aug 2019 at 5:36 PM, Rafael Tomelin > wrote: > >> >> Hi, >> >> I have an inventory with groups this configuration the DB Servers: >> >> [db] >> 192.168.0.1 >> 192.168.0.2 >> 192.168.0.3 >

[ansible-project] Create custom plugin for running in ansible server

2019-12-11 Thread Rafael Tomelin
Hey Dear, I would like to know if exists plugin, filter, module, then always running in ansible server, not necessary to specify delegate_to or local_action. If exists, which is and how work? -- You received this message because you are subscribed to the Google Groups "Ansible Project"

[ansible-project] with_dict in loop counter

2019-12-18 Thread Rafael Tomelin
Hi, I have a task for creating the virtual machine at Azure with_dict. I should like to create a variable count (number the VMS) and put it with_dict. How can create loop count with with_dict? -- Atenciosamente, Rafael Tomelin Tel.: 51-984104084 Skype: rafael.tomelin LPI ID: LPI000191271

[ansible-project] How use with_sequence and with_dict together

2019-12-18 Thread Rafael Tomelin
loop in task: sequence How can create this loop? -- Atenciosamente, Rafael Tomelin Tel.: 51-984104084 Skype: rafael.tomelin LPI ID: LPI000191271 Red Hat Certified Engineer Puppet Professional 2017 Certification -- You received this message because you are subscribed to the Google G

[ansible-project] Using the filter_plugins in conditional when

2020-09-02 Thread Rafael Tomelin
that the conditional does not accept filter_plugin. -- Atenciosamente, Rafael Tomelin Tel.: 51-984104084 Skype: rafael.tomelin LPI ID: LPI000191271 Red Hat Certified Engineer Puppet Professional 2017 Certification -- You received this message because you are subscribed to the Google Groups

[ansible-project] How treat errors in tasks

2020-10-13 Thread Rafael Tomelin
the execution I call another task or via callback call a previous task? -- Atenciosamente, Rafael Tomelin Tel.: 51-984104084 Skype: rafael.tomelin LPI ID: LPI000191271 Red Hat Certified Engineer Puppet Professional 2017 Certification -- You received this message because you are subscribed

Re: [ansible-project] Reboot servers strategy.

2020-07-01 Thread Rafael Tomelin
PM John Petro wrote: > Are you using ansible to apply updates and reboot now? If so, what does > your current process look like? > > --john > > On Mon, Jun 29, 2020 at 3:26 PM Rafael Tomelin > wrote: > >> >> Hi Guys, >> I have periodic updates on a

[ansible-project] Conditional with dict2item is falied

2020-06-15 Thread Rafael Tomelin
; How I do for doesn't read loop and not stop playbook when virtual_machine not defined? -- Atenciosamente, Rafael Tomelin Tel.: 51-984104084 Skype: rafael.tomelin LPI ID: LPI000191271 Red Hat Certified Engineer Puppet Professional 2017 Certification -- You received this message b

Re: [ansible-project] Conditional with dict2item is falied

2020-06-15 Thread Rafael Tomelin
ead you want to do this in loop, like: > > loop: '{{ virtual_machine|default({})|dict2items }}' > > On Mon, Jun 15, 2020 at 2:39 PM Rafael Tomelin > wrote: > >> >> Hi guys, >> >> I have a task with equal below, but when I validate it is defined i

Re: [ansible-project] Needs to Write a Playbook

2020-06-17 Thread Rafael Tomelin
0googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/682613d9-09c4-4aa6-b52e-338a076c51e2o%40googlegroups.com?utm_medium=email_source=footer> > . > -- Atenciosamente, Rafael Tomelin Tel.: 51-984104084 Skype: rafael.tomelin LPI ID: LPI000191271 Red Hat Certified En

[ansible-project] Reboot servers strategy.

2020-06-29 Thread Rafael Tomelin
Hi Guys, I have periodic updates on all RedHat servers at the same time, I need to create a strategy to restart my clusters because I can't stop my application and services. How to create the reboot strategy server-per-server in clusters? -- Atenciosamente, Rafael Tomelin Tel.: 51-984104084

Re: [ansible-project] Re: Windows Domain/Ansible Kerberos Auth Issues Still

2020-06-16 Thread Rafael Tomelin
e-project/01aa821e-afb8-45fb-8bd0-3baec466e97co%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/01aa821e-afb8-45fb-8bd0-3baec466e97co%40googlegroups.com?utm_medium=email_source=footer> > . > -- Atenciosamente, Rafael Tomelin Tel.: 51-984104084 Skype: rafael.tomelin LPI

[ansible-project] Filter in dynamic inventory

2020-07-24 Thread Rafael Tomelin
em_type == 'linux' -- Atenciosamente, Rafael Tomelin Tel.: 51-984104084 Skype: rafael.tomelin LPI ID: LPI000191271 Red Hat Certified Engineer Puppet Professional 2017 Certification -- You received this message because you are subscribed to the Google Groups "Ansible Project" group.

[ansible-project] How to filter plugins access vars from host

2020-10-21 Thread Rafael Tomelin
Hi, I create a new filter plugin but the plugin needs to get vars from the host. How to get the vars in python filter plugins? -- Atenciosamente, Rafael Tomelin Tel.: 51-984104084 Skype: rafael.tomelin LPI ID: LPI000191271 Red Hat Certified Engineer Puppet Professional 2017 Certification