Re: [ansible-project] Ansible installation issue - Makefile

2018-03-21 Thread Andreas Olsson
ons 2018-03-21 klockan 06:40 -0700 skrev Camille Beaudou:
> I'm trying to install Ansible on a Ubuntu 16.04 VM (VMWare). I'm
> following the install instruction on Ansible website, however when
> executing the command "make rpm", i get the following error message
> ...

How did you end up at those install instructions?

For an Ubuntu 16.04 system, unless you have any special requirements,
you are likely best of installing from the Ansible PPA.

  
https://docs.ansible.com/ansible/latest/intro_installation.html#latest-releases-via-apt-ubuntu

// Andreas

-- 
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/1521658559.3710.2.camel%40arrakis.se.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] vim as default editor on ubuntu/debian

2018-01-21 Thread Andreas Olsson
sön 2018-01-21 klockan 16:57 -0800 skrev Joli Martinez:
> I am looking for a way to make vim the default editor on my Ubuntu
> and  Debian based system.  Could you help me accomplish this?  On the
> CLI  I know that I have to run "update-alternatives --config editor"
> and then hit 3 for vim.  I just dont know if there is a way to have
> ansible hit 3.

Tried the alternatives[1] module?

- name: Set default editor
  alternatives:
name: editor
path: /usr/bin/emacs


// Andreas

[1]: https://docs.ansible.com/ansible/latest/alternatives_module.html

-- 
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/1516588388.2773.2.camel%40arrakis.se.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Jinja2 Configuration Concern with {{ fqdn_hostname }} and .conf file

2017-12-27 Thread Andreas Olsson
ons 2017-12-27 klockan 22:30 -0800 skrev Heather Luna:
> I have a configuration (.conf) file that I'm attempting to manipulate
> by adding the {{ fdqn_hostname }} ONLY for the serverName piece, the
> rest of the information like the SSL password is something that's
> going to change across my hosts. How do I edit just the one line and
> keep the rest of the configuration file in tact?

Sounds like you are looking for the lineinfile module?

https://docs.ansible.com/ansible/latest/lineinfile_module.html

// Andreas

-- 
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/1514443944.7015.1.camel%40arrakis.se.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Re: Repository for Ansible Tower

2017-12-27 Thread Andreas Olsson
tis 2017-12-26 klockan 23:45 -0800 skrev Nuwan Vithanage:
> curl -k -O 
> https://releases.ansible.com/awx/setup/ansible-tower-setup-latest.tar.gz

Please noone take this literally, and actually use the -k/--insecure
option when downloading software.

// Andreas

-- 
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/1514437257.2124.3.camel%40arrakis.se.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible playbook xml module - error when using in task

2017-10-01 Thread Andreas Olsson
lör 2017-09-30 klockan 22:41 -0700 skrev Sivakumar Lakshminarayanan:
> When trying ansible xml module...
> ...
> ...
> ansible 2.3.1.0

According to https://docs.ansible.com/ansible/latest/xml_module.html
the xml module wasn't introduced until Ansible 2.4.

// Andreas

-- 
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/1506857007.4998.1.camel%40arrakis.se.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Git Module: Is it a "Pull on Remote" or "Pull on Local and Push to remote"

2017-09-30 Thread Andreas Olsson
fre 2017-09-29 klockan 14:03 -0700 skrev indraj joglekar:
> How does the git module work?
> 
> a) Does it do a pull on the remote server?
> b) Does it first do a pull on the local admin server and then rsync
> copy the repo to the remote server?
The clone/pull happens locally on the remote server.

> If not, is it possible to do this in some other way?
Which way would you prefer it to work?

// Andreas

-- 
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/1506768346.6448.1.camel%40arrakis.se.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] yaml language

2017-07-16 Thread Andreas Olsson
sön 2017-07-16 klockan 22:15 -0700 skrev Kannappan M:
> Can  some one  please  guide  how to learn  yaml  codings  from
> basics  to expert level to write in ansible playbooks

What YAML resources have you managed to find on your own? Which
concepts make sense and which don't?

// Andreas

-- 
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/1500269283.2902.1.camel%40arrakis.se.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] am new to ansible need assistance

2017-07-16 Thread Andreas Olsson
sön 2017-07-16 klockan 11:16 -0700 skrev Kannappan M:
> Am  new  to  ansible  can  some  one  please  guide  how  and
> where  to start,  and  also  let  me know  how to  write  yaml
> codding  effectively any books  or links

https://docs.ansible.com/ansible/intro.html is a good starting point.

// Andreas

-- 
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/1500230035.3459.3.camel%40arrakis.se.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Re: Ansible 2.3 create new group on a host fails.

2017-07-15 Thread Andreas Olsson
lör 2017-07-15 klockan 11:04 -0700 skrev NixGeek:
> man one reason ansible makes me crazy is the silly indented crap in
> the playbook.

That "silly indented crap" is more formally referred to as YAML. For
better or worse it's fairly commonly used. Investing a bit of time in
understanding YAML will easily pay off in the long run.

Using a text editor with YAML support is also helpful.

// Andreas

-- 
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/1500143997.26708.1.camel%40arrakis.se.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible 2.3 create new group on a host fails.

2017-07-15 Thread Andreas Olsson
lör 2017-07-15 klockan 09:18 -0700 skrev NixGeek:
> My playbook
> ==
> ---
> 
> - hosts: myhosts
>   tasks:
> 
> - group:
>     name: useradmins
>     state: present
> ===

It looks as if you have gotten the indentation wrong. You want the
group creation to be a list item under tasks.


- hosts: myhosts
  tasks:
- group:
name: useradmins
state: present



// Andreas

-- 
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/1500136460.3507.1.camel%40arrakis.se.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] apt module behavior

2017-01-17 Thread Andreas Olsson
tis 2017-01-17 klockan 01:42 -0800 skrev Igor Schaefer:
> Sure, all you know the situation, when you install a new version of
> package  and you get a dialog window with warnings like "use existing
> version of  config file or replace it with new one" or "that your
> lovely function is  depricated now, make a note of this", etc.
> I'd like to know, what's apt module's behavior in such situation?
> What will its answer to this warnings?

Ansible defaults to keeping the old/existing config files.

See https://docs.ansible.com/ansible/apt_module.html and
the dpkg_options parameter for the technical details.

Regarding other questions I guess that depends on their origin. In most
cases I assume they come from debconf, in which case they are hidden by
DEBIAN_FRONTEND=noninteractive (as mentioned by Alexey).

// Andreas

-- 
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/1484724977.2650.7.camel%40arrakis.se.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Unable to Install Ansible

2017-01-11 Thread Andreas Olsson
ons 2017-01-11 klockan 02:38 -0800 skrev SR:
> I tried installing ansible on centos vagrant, but can’t install. As
> Im new  to this, request some one to help me on this.

Easiest is probably to install Ansible from EPEL. If nothing else it's
not unlikely that you might want that repository for other reasons too.

  https://fedoraproject.org/wiki/EPEL

// Andreas

-- 
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/1484132023.2585.14.camel%40arrakis.se.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Re: Need to source .bash_profile on target system

2017-01-10 Thread Andreas Olsson
tis 2017-01-10 klockan 21:59 -0800 skrev Mona Gopal:
> Even i am trying to source the bashrc file on my target system.
> Ansible runs successfully without errors but doesn't source the file.
> Below is my task:
> 
> - name: source bashrc file
>   shell: source ~/.bashrc
>   args:
>  executable: /bin/bash

The problem here isn't that Ansible isn't sourcing the file. The
problem is that Ansible isn't sourcing it in a helpful way.

Defined environment variables only take affect in the current process
and its child processes. It doesn't have any affect on parent nor
sibling processes.

Hence, what is happening here is that Ansible is starting a new shell
processes which sources your ~/.bashrc. Right afterwards the shell
processes is exited, and Ansible forgets all about its environment.

Is it an alternative to instead explicitly define the needed
environment variables in the playbook?

  https://docs.ansible.com/ansible/playbooks_environment.html

// Andreas

-- 
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/1484117985.2585.11.camel%40arrakis.se.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Help with package installation playbook

2017-01-04 Thread Andreas Olsson
ons 2017-01-04 klockan 13:25 +0100 skrev Cosimo Streppone:
> ...
> I'm still unsure about this error message when the facts gathering is
> not happening:
> 
> "Could not detect which package manager to use. Try gathering facts
> or setting the \"use\" option."
> 
> what is the "use" option?

See https://docs.ansible.com/ansible/package_module.html

  - package:
      name: emacs
  use: apt

... which is a bit of a pointless exercise. What might make more sense
then is something along these lines.

  - package:
      name: emacs
  use: "{{ host_alt_group_variable }}"


// Andreas

-- 
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/1483555376.9288.4.camel%40arrakis.se.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Help with package installation playbook

2017-01-03 Thread Andreas Olsson
Hello Cosimo

Indeed it looks as if facts aren't being gathered, which is kind of
odd, since it should happen by default. By then each play should
contain the following at the start.

  TASK [setup] 
***
  ok: [localhost.localdomain]

Any chance that your ansible.cfg has a non-default value for the
gathering[1] option? Such as it being set to explicit?

// Andreas

[1]: https://docs.ansible.com/ansible/intro_configuration.html#gathering

-- 
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/1483504967.2513.1.camel%40arrakis.se.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Re: ansible-nsupdate - module allowing dynamic dns updates

2017-01-02 Thread Andreas Olsson
sön 2017-01-01 klockan 10:37 -0800 skrev 'Michael Pophal':
> I'm very keen on this module, but unfortunately I've no idea how to
> install it. Could you please drop a hint, I'm just a ansible user ;-)


Well, here is how I installed it. The following commands being relative
to the playbook top-level directory.

  mkdir -p library vendor
  git submodule add https://github.com/mskarbek/ansible-nsupdate.git 
vendor/ansible-nsupdate
  ln -s ../vendor/ansible-nsupdate/nsupdate.py library/

Note that there is nothing special about the vendor directory. Might
not even be the most appropriate name. What matters is that the module
becomes available from within the library directory.

Doing a "git submodule add" assumes that you already have your playbook
files within an existing Git repository. If that isn't the case you
will probably want to do a "git clone" instead.

// Andreas

-- 
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/1483344156.2534.1.camel%40arrakis.se.
For more options, visit https://groups.google.com/d/optout.


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

2016-12-08 Thread 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 would install Ansible manually. Any chance that you also
have a /usr/bin/ansible, which better match the apt version?

// Andreas

-- 
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/1481184141.2546.2.camel%40arrakis.se.
For more options, visit https://groups.google.com/d/optout.


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

2016-12-07 Thread 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 says it' 2.2.0.0

What does `which ansible` say?

That is, any chance that you have an additional version of Ansible
installed, in addition to what is provided by the package manager?

// Andreas

-- 
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/1481122269.2295.3.camel%40arrakis.se.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible 2.2: register with a variable in the name

2016-12-02 Thread Andreas Olsson
Ok, here is a minimal playbook showing my particular issue.

  ---
  - hosts: localhost
vars:
  foo: pwfile
tasks:
  - name: lookup /etc/passwd
stat: path=/etc/passwd
register: abc_{{ foo }}_def
  - name: Display abc_{{ foo }}_def content
debug: var=abc_{{ foo }}_def

If I run this playbook using Ansible 2.1.3 it will display the full
stat result for /etc/passwd. If I instead use Ansible 2.2.0 I get the
following output from the debug task.

  TASK [Display abc_pwfile_def content] 
**
  ok: [localhost] => {
      "abc_pwfile_def": "VARIABLE IS NOT DEFINED!"
  }

So, is this a bug/regression in Ansible 2.2, or were I relying on an
unsupported behavior?

// Andreas

-- 
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/1480740738.3954.5.camel%40arrakis.se.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] flaky apt installs today on ubuntu

2016-12-02 Thread Andreas Olsson
fre 2016-12-02 klockan 15:16 -0800 skrev ja...@blendlabs.com:
> {"failed": true, "invocation": {"module_args": {"cache_valid_time":
> null, "deb": null, "default_release": null, "dpkg_options": "force-
> confdef,force-confold", "force": false, "install_recommends": null,
> "name": ["cryptsetup", "liblz4-tool", "mdadm", "sysstat"], "package":
> ["cryptsetup", "liblz4-tool", "mdadm", "sysstat"], "purge": false,
> "state": "present", "update_cache": true, "upgrade": null},
> "module_name": "apt"}, "item": ["cryptsetup", "liblz4-tool", "mdadm",
> "sysstat"], "msg": "Could not fetch updated apt files"}

Looks more like an issue with your particular apt mirror, rather than a
general Ubuntu issue?

// Andreas

-- 
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/1480737249.3954.2.camel%40arrakis.se.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible 2.2: register with a variable in the name

2016-11-27 Thread Andreas Olsson
Greetings

Since moving from Ansible 2.1.3 to Ansible 2.2.0 I have run into an
issue with register, and when it's variable name is built up using a
variable. I have no idea if this is due to a regression in Ansible 2.2,
or if I have been doing something wrong/unsupported which I finally got
bitten by.

Anyway, this being what breaks between 2.1.3 and 2.2.0. Context wise
it's part of a parameterize role.

  - name:  Add {{ repo_name }} sources
    template:
  src={{ repo_name }}.list.j2
  dest=/etc/apt/sources.list.d/{{ repo_name }}.list
  owner=root
  group=root
  mode=0444
    register: reg_{{ repo_name }}_sources
  
  - name: debug reg_{{ repo_name }}_sources
    debug: var=reg_{{ repo_name }}_sources

Running Ansible 2.1.3 I get the following expected output.

  TASK [repo : Add gitppa sources] 
***
  ok: [vagmast]
  
  TASK [repo : debug reg_gitppa_sources] 
*
  ok: [vagmast] => {
      "reg_gitppa_sources": {
  "changed": false, 
      "diff": {
  "after": {
      "path": "/etc/apt/sources.list.d/gitppa.list"
      }, 
      "before": {
      "path": "/etc/apt/sources.list.d/gitppa.list"
  }
  }, 
  "gid": 0, 
      "group": "root", 
  "mode": "0444", 
      "owner": "root", 
  "path": "/etc/apt/sources.list.d/gitppa.list", 
      "size": 61, 
      "state": "file", 
  "uid": 0
      }
  }

While with Ansible 2.2 that register never appear to happen.

  TASK [repo : Add gitppa sources] 
***
  ok: [vagmast]
  
  TASK [repo : debug reg_gitppa_sources] 
*
  ok: [vagmast] => {
  "reg_gitppa_sources": "VARIABLE IS NOT DEFINED!"
  }

Any idea what I'm doing wrong, or what I should try?

// Andreas

-- 
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/1480238624.3089.4.camel%40arrakis.se.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Python not found in Ubuntu 16.04 server

2016-05-16 Thread Andreas Olsson
On ons, 2016-05-11 at 03:28 -0700, codfather wrote:
> Andreas, when I implemented this, I had to put a line in the section
> to use  sudo for the installation, which makes sense, just wondering
> if you had achieved that another way , just curious.

Yepp, I have the following in my ansible.cfg

  [privilege_escalation]
  become  = True

(Where sudo is the default become_method)

> Thanks for the post.

Glad it helped!

// Andreas

-- 
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/1463396677.2403.7.camel%40arrakis.se.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Can you override location for "cp" folder on remote hosts?

2016-04-28 Thread Andreas Olsson
On tor, 2016-04-28 at 08:54 -0700, johhue wrote:

> Is there a way to overrride where this "cp" directory goes?

Put something like this in your ansible.cfg.

  [ssh_connection]
  control_path = /path/to/new_cp/ansible-ssh-%%h-%%p-%%r

See also https://docs.ansible.com/ansible/intro_configuration.html#control-path

// Andreas

-- 
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/1461869186.2044.2.camel%40arrakis.se.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Python not found in Ubuntu 16.04 server

2016-04-24 Thread Andreas Olsson
On sön, 2016-04-24 at 12:00 -0700, Peter Loron wrote:
> I'm trying to provision a Ubuntu 16.04 server machine. When running
> a playbook which has worked fine on Ubuntu 14.x and 15.x, it fails
> with this error:
> ...
> Ubuntu 16.04 has python3, not 2.7.x. Why is this not being
> autodetected?

No Ansible support for Python 3 just yet.

  
https://docs.ansible.com/ansible/faq.html#how-do-i-handle-python-pathing-not-having-a-python-2-x-in-usr-bin-python-on-a-remote-machine

For Ubuntu 16.04 I use the following play to get Python 2.7 installed.

  - hosts: xenials
    gather_facts: False
    tasks:
  - name: apt-get update
    raw: apt-get update -qq
  - name: Install python 2.7
    raw: apt-get install -qq python2.7

That provides an /usr/bin/python2.7, which I explicitly point to in my
inventory file.

  [xenials:vars]
  ansible_python_interpreter=/usr/bin/python2.7

Do note that there is nothing special about the name xenials. It's just
a group I have defined in my inventory.

// Andreas

-- 
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/1461526683.2004.7.camel%40arrakis.se.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible2 in stable repo

2016-03-19 Thread Andreas Olsson
lör 2016-03-19 klockan 05:51 -0700 skrev George Khan:
> I ask it jan 18, and ask after 2 month: Any news about ansible2 in
> debian8/centos7 _stable_ repo? :)

I wouldn't keep my hopes up about seeing ansible 2.x in the regular
Jessie repositories. That because of Debian's general policy about only
cherry-picking important bugfixes, not providing new upstream versions.

How do you feel about Debian Backports? Because jessie-backports
currently contains ansible 2.0.1.0-1.

// Andreas

-- 
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/1458400550.2237.7.camel%40arrakis.se.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: This is a digitally signed message part