On 13.02.2019 01:16, cortado wrote:
template file:
{% if myvar == "value1" %}
name: "mysql_RO_3306-a"
{% elif myvar = "value2" %}
name: "mysql_RO_3306-b"
{% else %}
name: "mysql_RO_3306-c"
{% endif %}
TASK [create RO var file]
Hi,
I am running Ansible 2.7.6 on Debian testing/sid and regularly run a
playbook against Windows 7 desktops. However, I can not connect anymore and
receive the following error (see below for a more verbose output):
ntlm: HTTPSConnectionPool(host='my-host', port=5986): Max retries exceeded
On Tue, Feb 12, 2019, at 4:24 PM, Tuyen Nguyen wrote:
> Hi
>
> I would like to implement version control on my playbooks and on my task
> plays. What version control is recommended? I have heard of using git,
> however I have never used git before. Does anyone have experience with
> using
Am I using elif incorrectly?
template file:
{% if myvar == "value1" %}
name: "mysql_RO_3306-a"
{% elif myvar = "value2" %}
name: "mysql_RO_3306-b"
{% else %}
name: "mysql_RO_3306-c"
{% endif %}
playbook:
---
- hosts: 127.0.0.1
connection: local
tasks:
- name: "create RO var file"
Hi
I would like to implement version control on my playbooks and on my task
plays. What version control is recommended? I have heard of using git,
however I have never used git before. Does anyone have experience with
using version control to manage all their playbooks?
--
You received
Actually, I figured this out
Instead of the value being referenced as:
value: %test%
or
value: '%test%' which I think did not work as well
I put the value on the next line
value:
'%test%'
And this works now as I needed.
On Tuesday, February 12, 2019 at 9:32:13 AM UTC-5, Tuyen Nguyen wrote:
The method for salting and hashing the password is probably different in
AIX, remember you's passing a hashed password and that's platform
dependent. You will have to find a way to do that for AIX. There's some
information in the following links
Hi Eduardo,
Ansible tends to be relatively prescriptive - you need to specify the
username, or you'd need to specify multiple "host" entries with each of the
usernames.
You could perform a "simple" action (like "ping" or "setup") and let it
stop processing hosts that it doesn't get a response
Someone could help me with this case where I have multiple hosts and for
these hosts I do not know which exact user but I have a list with some
possible possible users. inside the hosts file I create the group: vars but
I can only put a single user.
--
You received this message because you
On Tue, 12 Feb 2019 at 15:46, wrote:
>
> Thank you for answer Dick Visser,
>
> But can you please give me one exemple with this task:
>
>> - name: "stop my application"
>> command: home/ .../ /my_application stop
>
> With syntax ansible so with "service" or "systemd" please Dick.
>
Hi
Hi. i run my playbook to change user account password but this dont work ,
not change the password.
iam using aix 6 and 7.
this same playbook work fine on Linux.
this is my simple playbook to change password on a user acoount .
- name: Change account password
hosts: "AIXQA"
> To achieve what I'm after do I need to refactor all the roles so that
they have
To answer my own question, No.
I do need to change the way the roles are called
instead of
- hosts: tag_compute-node
roles:
- {role: 'compute', tags: 'compute'}
- {role: 'mount_smb', tags: 'mount_smb'}
- hosts:
On 12.02.2019 18:20, Pandu jh wrote:
I need to reject "*" from stdout lines. all values from stdout_lines
except
"*" symbol to be saved to "nfs_clients" variable
"stdout_lines": [
"rchinnn01",
"rchinnn02",
"*"
]
- set_fact:
nfs_clients: "{{
I need to reject "*" from stdout lines. all values from stdout_lines except
"*" symbol to be saved to "nfs_clients" variable
"stdout_lines": [
"rchinnn01",
"rchinnn02",
"*"
]
- set_fact:
nfs_clients: "{{ nfs_clients_out.stdout_lines |
We have been operating using a similar model (single project with single
roles/requirements.yml file and multiple individual role repositories
referenced in requirements.yml) for at least year without any issues. Prior
to Tower 3.3.x, the task to pull down roles in requirements.yml always ran
Thank you very much,
You are the best,
We can use :
ansible_user[5] is defined
and
ansible_user[5] is not defined
;)
Le mardi 12 février 2019 18:05:38 UTC+1, Pcis a écrit :
>
> Try when: ansible_user[5] is defined
--
You received this message because you are subscribed to the Google
Try when: ansible_user[5] is defined
--
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,
Hi,
I have a new problem,
When i want test exemple:
- debug:
msg: "ca fonctionne"
when: ansible_user[5] == true
it don't works. I want show this message *"ca fonctionne"* when
ansible_user[5] exist
So when ansible_user == true
But this syntax don't works.
Thank you
--
You
I might be able to help you... If you can send the result of the code here
--
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
Thank you very much Jean-Yves,
But i don't have a time, i must find solutions quickly.
And Documentation Ansible is so big and it's so difficult for find solution
in this documentation.
When i write in recherche documentation ansible exemple "when", it's don't
works recherche :/
Thank you !
Le 2019-02-12 17:11, ryad9200...@gmail.com a écrit :
Hi all,
I have a problem, i think there is a bug in ansible 2.8.0 but when i
And by the way, ansible 2.8.0 did'nt seem to exist yet... version 2.7.7
is the last stable release
Regards,
JYL
--
You received this message because you are
> For me, 6 out of 6 gave the answer I expected. It's just logic and common
sense.
I recently started using ansible, and I'm trying to adapt the existing
playbooks so I can have a 'config update' run, and it is exactly how I
wanted it to behave.
config-update.yml
---
- hosts: tag_compute-node
Le 2019-02-12 17:11, ryad9200...@gmail.com a écrit :
Hi all,
I have a problem, i think there is a bug in ansible 2.8.0 but when i
run this task :
- pause:
prompt: "Voulez-vous effectuer ce deploiement ? (o/n)"
register: response
- debug:
msg: "deploiement effectue"
when: response
Could you show me what it does when you run it?
--
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
Hi all,
I have a problem, i think there is a bug in ansible 2.8.0 but when i run
this task :
- pause:
prompt: "Voulez-vous effectuer ce deploiement ? (o/n)"
register: response
- debug:
msg: "deploiement effectue"
when: response == "o"
- meta: end_play
when: response != "o"
Thank you for your answer Pcis !! :)
In the ansible documentation, there is not this explication.
Now it's work !! ^^
You are the best ;)
subject solved
Le mardi 12 février 2019 16:06:09 UTC+1, Pcis a écrit :
>
> To prompt in a task you have to pause, you can only prompt without a pause
>
To prompt in a task you have to pause, you can only prompt without a pause
inside *- vars_prompt:*
e.g.
under tasks use:
- pause:
prompt: "*Voulez-vous effectuer ce deploiement ? (o/n)*"
register: response
On Tuesday, February 12, 2019 at 2:52:45 PM UTC, ryad9...@gmail.com wrote:
>
>
Hi all,
Why when i use prompt in playbook.yml it's works but not in
/roles/tasks/main.yml ??
*- vars_prompt:*
* - name: reponse*
* prompt: "Voulez-vous effectuer ce deploiement ? (o/n)"*
When i use prompt in my main playbook it's work when i launch this line
commande :
Thank you for answer Dick Visser,
But can you please give me one exemple with this task:
*- name: "stop my application"*
> * command: home/ .../ /my_application stop*
>
With syntax ansible so with "service" or "systemd" please Dick.
I think that you are the best, thank you !! :)
Le mardi
Hi
I am trying to set some environment variables to make the value start with
%, and I am getting errors.
For example, if I wanted to set the TEMP environment to c:\temp
and then I want to set the PATH environment variable to %TEMP%
I am getting error "found character that cannot start any
Hello,
I finally got the answer after weeks of trying:
---
- hosts: ###
gather_facts: yes
connection: local
become: pass
vars:
date: "{{ lookup('pipe', 'date +%Y.%m.%d-%H:%M') }}"
vars_prompt:
- name: "mgmt_username"
prompt: "Username"
private: no
- name:
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
Hello Jon
Yes I know the issue and it was intentional, what Im trying to do is to
test if this works or not.
- name: my task
shell: ./print.py
when: failed == '1'
register: task
tags: task
Thanks.
El martes, 12 de febrero de 2019, 3:35:54 (UTC-3), Jon Spriggs
Services and an applications are the same things, it's just different semantics.
It's the way they're being managed that's different.
I would suggest you create a template task to ensure a systemd unit
exists, so that it fits in the existing framework to manage services.
Once you have that, you
On 12/02/19 3:00 PM, ryad9200...@gmail.com wrote:
hi all,
UPPP please !!
Someone have an idea please guy !! :)
Le lundi 11 février 2019 16:07:21 UTC+1, ryad9...@gmail.com a écrit :
Hello,
How to stop or start not a service but an application.
This command works but I would
hi all,
UPPP please !!
Someone have an idea please guy !! :)
Le lundi 11 février 2019 16:07:21 UTC+1, ryad9...@gmail.com a écrit :
>
> Hello,
>
> How to stop or start not a service but an application.
>
> This command works but I would like an "ansible syntax" :
>
> *- name: "stop my
36 matches
Mail list logo