Re: [ansible-project] Template module doesn't work with any kind of loop

2023-02-28 Thread Adrian Sebastian Dutu
Seems this is caused by the path in the src. You can't put anything there except the file name, and it will look in playbooks/templates/filename. If i try to put a path, it throws that error. This behavior happens only with loops though. Without loops, I can put a full or relative path in the src

[ansible-project] Re: Howto to deploy kerberos (krb5.conf) info during awx operator install?

2022-07-12 Thread 'Sebastian Jaekel' via Ansible Project
f mountPath: /etc/krb5.conf subPath: krb5.conf volumes: - name: krb5-conf configMap: name: awx-demo-extra-config Regards Sebastian urs...@gmail.com schrieb am Dienstag, 14. Juni 2022 um 15:16:25 UTC+2: > OK, I think I have part of an answer but I am not

[ansible-project] Helm module issue.

2020-11-13 Thread Sebastian
Hi, I'm trying to install Helm chart from the local file on the local Minikube instance but I'm constantly getting the same error: fatal: [localhost]: FAILED! => { "changed": false, "command": "/usr/local/bin/helm --namespace=kube-system list --output=yaml --filter registrylocal", "i

Re: [ansible-project] change root password - ned help

2020-10-27 Thread Sebastian Meyer
validate_certs: no > > - name: print results > debug: msg=" {{ result }}" > vars_files: > - answerfile.yml try something like: - hosts: esx tasks: - name: foo bar: baz: blah delegate_to: localhost Then the task should be ru

Re: [ansible-project] Trying to background a start up script

2020-09-03 Thread Sebastian Collins
. Simples! Thanks for your advice. On Thu, Sep 3, 2020 at 7:02 PM Stefan Hornburg (Racke) wrote: > On 9/3/20 7:58 PM, Sebastian Collins wrote: > > I tried the command module before using the shell module. > > > > I thought the command module was the wrong choice because when

Re: [ansible-project] Trying to background a start up script

2020-09-03 Thread Sebastian Collins
var: status On Thu, Sep 3, 2020 at 5:52 PM Stefan Hornburg (Racke) wrote: > On 9/3/20 5:45 PM, Sebastian Collins wrote: > > Thanks for your suggestion. PM2 actually looks really good. Great > monitoring metrics and ansible seems to > > seamlessly invoke it no problem: >

Re: [ansible-project] Trying to background a start up script

2020-09-03 Thread Sebastian Collins
m not listening on the intended port with the custom credentials. No doubt there is a way to do this but before looking at adopting pm2 is there not just a simple fix to my existing ansible task in order to launch "node start" and keep that process up and running? On Thu, Sep 3, 202

[ansible-project] Trying to background a start up script

2020-09-03 Thread Sebastian Collins
Hi, I have this task and I can't for the life of me get it to keep the process running. I have added in some debug and it shows me the process is getting shutdown almost immediately after it is started up as can be seen by the end time in the output I have provided below. Please advise how I ca

[ansible-project] Ansible task not starting up custom node.js script with either shell or command module

2020-09-02 Thread Sebastian Collins
Hi, Any ideas where I am going wrong here? I have a web server task which uses shell to start apache no problem: - hosts: webservers remote_user: root become_user: test become: True tasks: - name: Task18 - Start webservers back up shell: ./apache/bin/apachectl start

Re: [ansible-project] Trying to use pexpect ansible module to run interactive script

2020-08-29 Thread Sebastian Collins
module is working a treat. Thanks very much for your help. On Friday, August 28, 2020 at 3:36:30 PM UTC+1 Sebastian Collins wrote: > Legend! I never would have figured this out, so thanking you kindly. > > I have hit one error after this: : > > "argument responses is

Re: [ansible-project] Trying to use pexpect ansible module to run interactive script

2020-08-28 Thread Sebastian Collins
ult: > postcodesio\]': 'postcodesio' > 'Password for new user \[default: secret\]': 'secret' > 'Postgresql Host \[default: localhost\]': 'localhost' > 'Database Name \[default: postcodesi

[ansible-project] Trying to use pexpect ansible module to run interactive script

2020-08-27 Thread Sebastian Collins
Hi, I have composed this ansible task using the pexpect module to run a setup.sh script with npm run - name: Setup postcodesiodb expect: echo: yes chdir: "/apps/was/postcodes.io" command: npm run setup timeout: "10" responses: Question:

Re: [ansible-project] Re: Migrating playbook from ubuntu to amazon linux 2 - throws error missing dependency: python-apt

2020-02-06 Thread Adrian Sebastian Dutu
You can use package facts for that: https://docs.ansible.com/ansible/latest/modules/package_facts_module.html On Wednesday, February 5, 2020 at 10:27:01 AM UTC+1, Stefan Hornburg (Racke) wrote: > > On 2/5/20 9:48 AM, Adrian Sebastian Dutu wrote: > > Why are you using the co

[ansible-project] Re: Migrating playbook from ubuntu to amazon linux 2 - throws error missing dependency: python-apt

2020-02-05 Thread Adrian Sebastian Dutu
Why are you using the command module? Use the package module. Then it will not matter what package manager the distro is running. If you have ansible module available for what you want to do, never use command. I would rewrite the entire play. On Wednesday, February 5, 2020 at 2:08:01 AM UTC+

Re: [ansible-project] shell

2019-09-09 Thread Sebastian Meyer
t; - name: Ansible fact - ansible_date_time > shell: date.sh > args: >chdir: /home/manish/mk/ansible/linux/ > > Error: > > ERROR! Syntax Error while loading YAML. > mapping values are not allowed in this context Your indentation is incorrect. The last three

Re: [ansible-project] if win_chocolatey can install Visual studio community?

2019-08-13 Thread Sebastian Meyer
On 14.08.19 04:49, 舒何伟 wrote: > " See the log for details > (C:\ProgramData\chocolatey\logs\chocolatey.log).", What does the log say? -- Sebastian Meyer Linux Consultant & Trainer Mail: me...@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://

Re: [ansible-project] I have setup an ansible user that can login with a ssh-key and sudo su - with no password but this appears not to work.

2019-08-13 Thread Sebastian Meyer
Hi Steven, On 13.08.19 22:34, Steven Mething wrote: > How do I fault find such an issue? > Ansible doesn't do sudo su -. It does sudo python /ANSIBLETMP/CURRENTTASK.py or something like that. Can you show us your sudoers config? Sebastian -- Sebastian Meyer Linux Consultant &am

Re: [ansible-project] using variable from another file

2019-08-06 Thread Sebastian Meyer
w how to get my first line and make it a variable in my 1st file > See: https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#defining-variables-in-files Sebastian -- Sebastian Meyer Linux Consultant & Trainer Mail: me...@b1-systems.de B1 Systems GmbH Osterfeldst

Re: [ansible-project] Help for variable defination

2019-08-06 Thread Sebastian Meyer
d work for you. Otherwise you might want to look at setting a different variable and merge them using set_fact and the combine jinja filter. Sebastian -- Sebastian Meyer Linux Consultant & Trainer Mail: me...@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-syste

Re: [ansible-project] Ansible any_errors_fatal does not work as expected. Need Fix

2019-08-06 Thread Sebastian Meyer
ant your loop to skip all remaining items on that task on that host once an error has occured you can use my second example. If you add any_errors_fatal all hosts won't execute any other tasks. Sebastian -- Sebastian Meyer Linux Consultant & Trainer Mail: me...@b1-systems.de B1 Syste

Re: [ansible-project] import_tasks: vs include: when using when: conditional

2019-08-05 Thread Sebastian Meyer
: debug] skipping: [localhost] TASK [foobar : include_tasks] skipping: [localhost] TASK [foobar : debug] ok: [localhost] => { "msg": "End" } PLAY RECAP [...] Sebastian -- Sebastian Meyer Linux Consul

Re: [ansible-project] Ansible any_errors_fatal does not work as expected. Need Fix

2019-08-05 Thread Sebastian Meyer
le or directory", "stderr_lines": ["mkdir: cannot create directory ‘/tmp/foo/baz/bar’: No such file or directory"], "stdout": "", "stdout_lines": []} skipping: [localhost] => (item=/tmp/foo/bar/baz) skipping: [localhost] => (item=/tmp/foo/abc) P

Re: [ansible-project] Ansible for openstack

2019-08-05 Thread Sebastian Meyer
Hi Rahul, everything is connected to the instance, no? You can't deprovision sec groups, network stuff or key_pairs while they are in use. You'll have to remove the instance first. Regards Sebastian On 05.08.19 09:19, Rahul Kumar wrote: > Hi All, > I have provisoned one instanc

Re: [ansible-project] Ansible For Openstack

2019-08-01 Thread Sebastian Meyer
nt remove a network, if theres still an instance on it. -- Sebastian Meyer Linux Consultant & Trainer Mail: me...@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537 -- Deutsche OpenSt

Re: [ansible-project] Ansible For Openstack

2019-08-01 Thread Sebastian Meyer
iven by openstacksdk, which means that values can come from a yaml config file in /etc/ansible/openstack.yaml, /etc/openstack/clouds.yaml or ~/.config/openstack/clouds.yaml Sebastian -- Sebastian Meyer Linux Consultant & Trainer Mail: me...@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 8

Re: [ansible-project] Best way to organize your playbooks

2019-07-31 Thread Sebastian Meyer
rectory structure like this: ansible/ common/roles/ app1/roles/ app2/roles/ and in the app folders each an ansible.cfg with: roles_path: ./roles:../common/roles [0] https://docs.ansible.com/ansible/latest/reference_appendices/config.html#default-roles-path -- Sebastian Meyer Linux Consu

Re: [ansible-project] The destination directory (/sys/module/nvme_core/parameters) is not writable by the current user

2019-07-29 Thread Sebastian Meyer
current_timeout changed_when: false - name: Set nvme.io_timeout value shell: "echo {{ nvme_target_timeout }} > /sys/module/nvme_core/parameters/io_timeout" when: nvme_current_timeout.stdout|int != nvme_target_timeout|int Regards, Sebastian -- Sebastian Meyer Li

Re: [ansible-project] Variable registration is getting skipped in zypper module

2019-06-13 Thread Sebastian Meyer
uot;openSUSE Leap 42.3" 56 packages to upgrade, 6 new. Overall download size: 27.8 MiB. Already cached: 0 B. After the operation, additional 12.4 MiB will be used. Continue? [y/n/...? shows all options] (y): y Regards -- Sebastian Meyer Linux Consultant & Trainer Mail: me...@b1-systems.de B1

Re: [ansible-project] Ansible iterate from file and populate template

2019-06-13 Thread Sebastian Meyer
e csvfile lookup. https://docs.ansible.com/ansible/latest/plugins/lookup/csvfile.html Regards Sebastian -- Sebastian Meyer Linux Consultant & Trainer Mail: me...@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz:

Re: [ansible-project] add list from host variables and group variables

2019-05-27 Thread Sebastian Meyer
se set_fact in your playbook/a role to merge them. --- all: vars: _city_all: - Berlin children: g_empty: hosts: emptystretch: city: - Steglitz --- - hosts: all pre_tasks: - set_fact: city: "{{ _city_all + city |

Re: [ansible-project] Default filter issue

2019-05-14 Thread Sebastian Meyer
On 14.05.19 09:23, Daniel Vašek wrote: > Hello, > > Im trying to use default filter: > > hosts: ["{{ groups['examples'][0] | default('localhost') }}":5045] > You should be able to use: groups.examples.0 | default(...) This is the one case wh

Re: [ansible-project] ERROR! Syntax Error while loading YAML. mapping values are not allowed in this context

2019-05-03 Thread Sebastian Meyer
On 03.05.19 11:38, op...@netexpress.de wrote: > -name: postfix - set debconf defaults before postfix install You are missing a space here between the hyphen and name. Sebastian -- Sebastian Meyer Linux Consultant & Trainer Mail: me...@b1-systems.de B1 Systems GmbH Osterfeldstraße 7

Re: [ansible-project] i can't list hard disk info

2019-05-02 Thread Sebastian Meyer
depending on the exact syntax >> problem.\n\nThe offending line appears to be:\n\n\n    - debug:\n      >> ^ here\n"} >> >> What I do? > > > Hi, > > Try with disk_facts.guest_disk_facts[1]instead... disk_facts.guest_disk_facts.1 and disk_facts.guest_disk_fact

Re: [ansible-project] pip install docker-compose

2019-04-10 Thread Sebastian Meyer
Ah I saw you have docker-py installed globally and installed docker for your user with pip? https://github.com/ansible/ansible/issues/37958#issuecomment-376320961 Seems like there's a problem with having both. Sebastian On 10.04.19 15:21, Andrew Meyer wrote: > Any other thoughts?

Re: [ansible-project] How to capture/filter stdout_lines

2019-04-09 Thread Sebastian Meyer
is and it didn't work. > > "{{ Regvar.stdout_lines | last }}" Try {{ regvar.stdout_lines[-1] }} > -- Sebastian Meyer Linux Consultant & Trainer Mail: me...@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Un

Re: [ansible-project] pip install docker-compose

2019-04-09 Thread Sebastian Meyer
efault, Oct 12 2017, 15:50:02) [GCC] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import compose >>> I noticed you executed the installer playbook with root. Could you check pip and ansible_py

Re: [ansible-project] pip install docker-compose

2019-04-09 Thread Sebastian Meyer
Hi Andrew, what's the output of pip --version and ansible localhost -m setup | grep ansible_python_version Regards Sebastian On 09.04.19 21:26, Andrew Meyer wrote: > I seem to be having an issue when trying to run this playbook for building > AWX. > > When I go to run the

Re: [ansible-project] Execut playbook host after host

2019-04-08 Thread Sebastian Meyer
ansible/latest/user_guide/playbooks_delegation.html#rolling-update-batch-size Use `serial: 1` HTH, Sebastian -- Sebastian Meyer Linux Consultant & Trainer Mail: me...@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz:

Re: [ansible-project] open(module, 'wb') SyntaxError for raw module in ansible-playbook

2019-04-04 Thread Sebastian Meyer
work around this issue ? You need to set gather_facts to no. gather_facts uses the setup module, which is Python. - hosts: servers gather_facts: no tasks: [...] Sebastian > > -- Sebastian Meyer Linux Consultant & Trainer Mail: me...@b1-systems.de B1 Systems GmbH Osterfeld

Re: [ansible-project] how to access debug stdout variable

2019-04-03 Thread Sebastian Meyer
On 03.04.19 16:44, Kunalsing Thakur wrote: > Hi sebastian, > when i try to fail the task with this below condition i get the error in > task > > *failed_when: pulp.results.0.stdout == "\e[0m"* > > TASK [mobi_ansible_role_pulp : s

Re: [ansible-project] how to access debug stdout variable

2019-04-03 Thread Sebastian Meyer
> with_items: "{{ rpmname | default([]) }}" > register: pulp > when: rpmsearch is defined You are using register with a loop. That means pulp.results is a list and there's an element for each item in that list. You can access the stdout for the first item with pulp.r

Re: [ansible-project] Check Number Of Wheel Group Members

2019-04-02 Thread Sebastian Meyer
On 02.04.19 19:50, Jon Adcock wrote: >that: getent_group.wheel|default(["", "", ""])[2] == "" You'll need () around the getent and default: that: (getent_group.wheel|default(["", "", ""]))[2] == "" T

Re: [ansible-project] Edit playbook to work with Packer Ansible Provisioner

2019-04-02 Thread Sebastian Meyer
ok” If this is > the case, How should I edit my playbook? As it is now it has a “hosts” > entry - should I just remove that? Use hosts: all Packer only makes the one host available in the inventory. Sebastian > It looks like: > > - hosts: ec2lin > > remote_user: ec2-

Re: [ansible-project] Memory error when downloading 3.4GB file

2019-03-28 Thread Sebastian Meyer
; --- My testfile is a 4.2GB and ram usage for that single python process goes up to 12.5GB before settling at 9.7GB. So you might not have enough RAM on the system you're slurping the file from. Sebastian -- Sebastian Meyer Linux Consultant & Trainer Mail: me...@b1-systems.de B1 Syste

Re: [ansible-project] Run script that requires 'sudo' on remote hosts.

2019-03-28 Thread Sebastian Meyer
le is only allowed to execute this script with sudo and not use sudo for ALL, then you are right to use command: sudo /usr/local/bin/application_stop_start.sh stop You may want to add warn: no See: https://docs.ansible.com/ansible/latest/modules/command_module.html?highlight=warn Sebastian -- Seb

Re: [ansible-project] Re: Nmcli module static routes

2019-03-28 Thread Sebastian Meyer
On 27.03.19 21:05, anil kumar wrote: > I mean using nmcli module, I was able do with nmcli command. > It's not possible yet. I opened a PR for that: https://github.com/ansible/ansible/pull/54491 Sebastian > On Monday, March 25, 2019 at 6:43:23 PM UTC+1, anil kumar wrote: >>

Re: [ansible-project] Run script that requires 'sudo' on remote hosts.

2019-03-27 Thread Sebastian Meyer
p' and it did not work. Does > anyone have any suggestions? > Thanks. You still need `become: true`, since you want to _become_ root executing this script. Just setting the become_method to sudo won't do anything. Sebastian > -- Sebastian Meyer Linux Consultant & Trainer M

Re: [ansible-project] yum module gives "AttributeError: 'list' object has no attribute 'strip'" on list of items

2019-03-27 Thread Sebastian Meyer
name: "{{ base_pkgs + additional_pkgs | default([]) }}" Ansible wants a flat list here. The suggestion in the deprecation warning thinks both are just normal values and wants you to put them into a list. But if you already have lists, merge them with + as in the above code. HTH, Sebast

Re: [ansible-project] Ansible modules copy/template errors for Linux 5 hosts using python26 ,python binding libselinux-python needed

2019-03-27 Thread Sebastian Meyer
ould still be using the system libselinux-python. Sebastian -- Sebastian Meyer Linux Consultant & Trainer Mail: me...@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537 -- You receiv

Re: [ansible-project] debug statement not working

2019-03-26 Thread Sebastian Meyer
"TaniumClient-6.0.314.1442-1.rhe7.x86_64" > ] > }, > > > but > > - debug: > msg: "{{ pkg.results.stdout }}" > > fails. Seems like I should be able to print that. You could print {{ pkg.results.0.std

Re: [ansible-project] Re: Limiting hosts when including playbooks

2019-03-26 Thread Sebastian Meyer
-tasks-import-tasks-inline-variables Sebastian > > > On Friday, February 1, 2013 at 5:06:49 PM UTC+1, Lorin Hochstein wrote: >> >> >> On Fri, Feb 1, 2013 at 11:02 AM, Daniel Hokka Zakrisson > > wrote: >> >>> Lorin Hochstein wrote: >>>> T

Re: [ansible-project] command scp in ansible

2019-03-22 Thread Sebastian Meyer
that setting, but I'm not sure how it works with the copy module. The copy module itself seems to only call Pythons shutil.copy* which works on local paths. At what point does the src file get transferred to the remote host? If someone could point me at the file/function doing that, th

Re: [ansible-project] command scp in ansible

2019-03-22 Thread Sebastian Meyer
ies by scp as the command linux > scp -rp Not via a module. You'll need to use command for that. - Sebastian > > Thanks community ansible !! ;) > > Regards, > -- Sebastian Meyer Linux Consultant & Trainer Tel.: +49-172-2057471 Mail: me...@b1-systems.de B1 Syst

Re: [ansible-project] Re: Using defaults for Ansible user module for for "home", "group" and "groups"

2019-03-22 Thread Sebastian Meyer
On 22.03.19 12:26, Suhail Choudhury wrote: > Sorry I meant I've tried something like: > > group: "{{ (item.group) | default('[]') }}" > Try default(omit), that'd just not set the parameter if item.group isn't defined. - Sebastian > but no j

Re: [ansible-project] Re: Need help with how to grab public ip and use it for later part in playbook

2019-03-22 Thread Sebastian Meyer
. - Sebastian On 21.03.19 23:19, tinkuchowdar...@gmail.com wrote: > Thank you sebastian for quick reply > unfortunately that didn't work > > here the part that i am running > > - name: "gather instance facts" > ec2_instance_facts: > instance_i

Re: [ansible-project] user_module and ssh key

2019-03-22 Thread Sebastian Meyer
a bug in the docs, it's fixed in the devel docs: https://docs.ansible.com/ansible/devel/modules/user_module.html - Sebastian > -- Sebastian Meyer Linux Consultant & Trainer Mail: me...@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / U

Re: [ansible-project] Need help with how to grab public ip and use it for later part in playbook

2019-03-21 Thread Sebastian Meyer
"xx.xxx.44.51", > "root_device_name": "/dev/xvda", [...] > } > ] > } > } > > > i want to use debug option in playbook to print only the public ip > > ec2.instances.public_ip is not working instanc

Re: [ansible-project] ansible fail to work with ssh

2019-03-19 Thread Sebastian Meyer
did not specify a user there). If that user is different from the one you use for ansible, then the key can't be used. - Sebastian -- Sebastian Meyer Linux Consultant & Trainer Mail: me...@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de

Re: [ansible-project] convert yaml file into jinja

2019-03-19 Thread Sebastian Meyer
n a playbook: {{ ansible_facts['disks'][0]['size'] }} - Sebastian -- Sebastian Meyer Linux Consultant & Trainer Mail: me...@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB

Re: [ansible-project] SSH Access to the Remote servers

2019-03-17 Thread Sebastian Meyer
ck is, if normal ssh works as expected. > - ansible.cfg You should not need to specify anything here. If you need to keep your ssh_config in a location the systems SSH client wouldn't look for it, you probably could add a -F /path/to/your/ssh/config to the ssh_args parameter. HTH Sebastian

Re: [ansible-project] unable to delete line file

2019-03-12 Thread Sebastian Meyer
lineinfile: dest=/tmp/node/test.new > regexp='^{{ansible_hostname}}$' > state=absent > '^{{ ansible_hostname }}$' matches a line containing only the name of the node currently running the task. If you want to delete a line starting with

Re: [ansible-project] conditionals

2019-03-11 Thread Sebastian Meyer
e=0failed=0 host2 : ok=1changed=0unreachable=0failed=0 Hope that helps, Sebastian -- Sebastian Meyer Linux Consultant & Trainer Mail: me...@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Voh

[ansible-project] Re: Having problems with a variable in vars_files

2019-02-19 Thread Adrian Sebastian Dutu
Can you run your playbook with -vvv then post the output? It's probably going to be a lot, so use https://pastebin.com/ . Check if beforehand for any sensitive information. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from

[ansible-project] Re: Execute eval from shell module to set up environment variables

2019-02-18 Thread Adrian Sebastian Dutu
You need to put those export commands in the shell initialization files. Running export will set it just for the current session, which will close when the playbook ends. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from t

Re: [ansible-project] Execute eval from shell module to set up environment variables

2019-02-18 Thread Adrian Sebastian Dutu
You need to put those export commands in the shell initialization files. Running export will set it just for the current session, which will close when the playbook ends. On Sat, Feb 16, 2019 at 10:12 PM Захари Палазов wrote: > Is it possible to execute eval command from a shell module to set up

[ansible-project] Re: --skip-tags equivalent inside playbooks

2019-02-04 Thread Adrian Sebastian Dutu
You have the tag "never" which will make that role/task not execute by default when running the play, unless explicitly called with --tags. Check special tags in the docs: https://docs.ansible.com/ansible/latest/user_guide/playbooks_tags.html -- You received this message because you are subscr

[ansible-project] audit asnisble-playbook

2019-01-08 Thread Sebastian lusenti
hi, I'm having a security issue problem with Ansible. for policies, I have to know who did what. So, if I want to launch some playbooks and somehow cause trouble in the servers, I must bring back the information who did what on those servers. now the only information that I have is the servers a

[ansible-project] Re: how to pass ansible variables from Jenkins by using parameters

2018-10-24 Thread Adrian Sebastian Dutu
-e allows you to pass variables to the command line. So you can put that in your job. Also, there's an ansible jenkins plugin. You can take a look at that. https://wiki.jenkins.io/display/JENKINS/Ansible+Plugin On Wednesday, October 24, 2018 at 8:40:34 AM UTC+2, kumar kittu wrote: > > Hello All,

[ansible-project] Re: Error add host to host collection with uri module api rest operations with satellite

2018-10-23 Thread Adrian Sebastian Dutu
Can you do a get on both of those ids (972,1280)? Seems like one of them is not existing. -- 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+un

[ansible-project] Re: Get Field with equal condition from json generated ansible 2.5.2 uri module

2018-10-23 Thread Adrian Sebastian Dutu
> > Define it under a vars section. > https://docs.ansible.com/ansible/devel/user_guide/playbooks_variables.html#variables-defined-in-a-playbook -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiv

[ansible-project] Re: Ansible Playbook error - Dict object has no attribute.

2018-10-22 Thread Adrian Sebastian Dutu
I think the indentation appears wrong just in the preview. I downloaded the file and the indentation is fine on line 10. It seems this line is the issue: combine(rxgt_mgmt_account.account_config.stacks['rxgt-ps-mgmt-direct-connect-gateway'].override_tags, recursive=True) }}" It says that dicti

[ansible-project] with_items... in groups[item.hostgroups]

2017-07-13 Thread Sebastian Gogoasa
Hello, I'm trying to create new users but I've encountered a problem with the when statement which doesn't allows me to move forward. users.yml - fullname: Full Name Here1 username: sshusernamehere1 userkey: ../files/ssh-keys/sshusernamehere1/authorized_keys access: state: pr

[ansible-project] bigip_irule module and token authentication

2017-07-05 Thread Sebastian Plush
Hi Does anyone know whether the bigip_irule module supports token authentication? Using remote (ldap) auth to the BigIP and, while initial authentication is successful, subsequent REST calls fail with auth error. All indications are that module does not support tokens, but unable to find any

Re: [ansible-project] update of ansible seems to be inconsistent

2016-12-12 Thread Sebastian S.
You were right. There was a ansible pip installation. I uninstalled it and ansible --version is now correct. Thank you!! ^^ Am Donnerstag, 8. Dezember 2016 13:44:35 UTC+1 schrieb Sebastian S.: > > In fact there is one. But when I run this one something goes wrong: > > ansible@DE

Re: [ansible-project] update of ansible seems to be inconsistent

2016-12-08 Thread Sebastian S.
amed _text Am Donnerstag, 8. Dezember 2016 09:02:31 UTC+1 schrieb Andreas Olsson: > > ons 2016-12-07 klockan 23:40 -0800 skrev Sebastian S.: > > which ansible says: /usr/local/bin/ansible > > That looks more like somewhere where Pip would install Ansible, or > where someone

Re: [ansible-project] update of ansible seems to be inconsistent

2016-12-07 Thread Sebastian S.
plete new installation... Am Mittwoch, 7. Dezember 2016 15:51:23 UTC+1 schrieb Andreas Olsson: > > ons 2016-12-07 klockan 03:52 -0800 skrev Sebastian S.: > > ansible@DE9899S76 ~ % ansible --version > > ansible 2.0.0.2 > > > > 3. apt-cache --showpkg ansible say

[ansible-project] Update of ansible seems incorrect

2016-12-07 Thread Sebastian S.
Hello, I've a Ubuntu 14.04 box with Ansible and Ansible-Tower running. I do regularly upgrades of the packages and have the official mirror for Ansible in my sources.list. So it gets updates. So far, so good. But i think there's something wrong. 1.) When I do a ansible --version on the comma

[ansible-project] update of ansible seems to be inconsistent

2016-12-07 Thread Sebastian S.
Hello folks, we have a Ubuntu 14.04 box running Ansible and Ansible-Tower on it. The packages are updates regularly. The Ansible mirror is also listed in the sources.list, so it gets updates too. But there seem to be something wrong. I'm thinking this because 1. When I do a ansible --version i

[ansible-project] Re: any_errors_fatal as a global config?

2016-10-04 Thread Sebastian Szwed
Hello, I've got a similar problem, did you solve it? Thanks W dniu czwartek, 12 maja 2016 19:10:44 UTC+2 użytkownik Bharathwaj Sankara napisał: > > Hello- > I want to stop the playbook on hitting the first error and not proceed > anything further, I understand > any_errors_fatal: True > > wi

[ansible-project] ansible installation: no /etc/ansible/hosts file

2015-11-29 Thread Sebastian M Cheung
No file for /etc/ansible/hosts Where is this file? Instructor opened an automatically generated /etc/ansible/hosts file but there is no such file in Mac OSX after ansible is installed? Am I supposed to create this file myself or it is automatically generated? as I cannot find it on Mac OSX aft

[ansible-project] installation on Mac OSX issue

2015-08-18 Thread Sebastian M Cheung
ython interpreter to use? If so how to modify Ansible script Thanks Sebastian -- 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

Re: [ansible-project] Same list from multiple vars-files consolidated

2015-01-08 Thread Sebastian Gumprich
Thanks for your input. I tried setting hash_behaviour to "merge" but this doesn't work. Even when I put the two lists into one vars-file, only the last list will be used. But you mentioning naming the variable different gave me an idea. I'm using different variables in group_vars and host_vars no

[ansible-project] Same list from multiple vars-files consolidated

2015-01-07 Thread Sebastian Gumprich
way to conflate these lists / use both? Or am I doing something wrong? Regards Sebastian -- 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-pr

[ansible-project] dpkg options

2014-12-19 Thread sebastian halfar
Hallo ansible-team, first of all nice work i like this tool alot. We use it for Updates on Debian Server. I got one request for your dpkg options, we need the possibility to give apt module some dpkg options like only upgrade a certain package only if its already installed. Can u tell me if u g

Re: [ansible-project] use subelement-variables in templates

2014-08-13 Thread Sebastian Gumprich
s" and > avoid calling the template task multiple times, and then just rely on the > loop inside the template. > > > > On Tue, Aug 12, 2014 at 8:10 AM, Sebastian Gumprich > wrote: > >> Hi, >> >> I have the following variab

[ansible-project] use subelement-variables in templates

2014-08-12 Thread Sebastian Gumprich
e}}] sourcetype = {{sources.sourcetype}} {% endfor %} Or is there a simpler alternative? Regards Sebastian -- 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

[ansible-project] Re: Ansible + Vagrant with VirtualBox ssh error

2013-12-14 Thread Sebastian Pawluś
I've found the same issue this morning: - ansible 1.4.1, and devel with at #91f903eabeddfa19552eb1d1b998297d99627e3d as well - Vagrant 1.4 - host machine ubuntu 13.10 64, - guest machine ubuntu 12.04 64 It looks a bit nondeterministic, there are moments when vagrant up works just fine. --