Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with var in ansible 2.2 #2

Open
rob42 opened this issue Nov 8, 2016 · 1 comment
Open

Problem with var in ansible 2.2 #2

rob42 opened this issue Nov 8, 2016 · 1 comment

Comments

@rob42
Copy link

rob42 commented Nov 8, 2016

These lines in main.yml fail in 2.2, the syntax has changed:

- name: Ensure hostname entries in /etc/hosts
  lineinfile:
    dest: /etc/hosts
    regexp: "{{item.regexp}}"
    line: "{{item.line}}"
    state: present
  with_items: hostname_hosts_file

Need to change last line to:

  with_items: "{{hostname_hosts_file}}"
@ahelal
Copy link
Contributor

ahelal commented Nov 8, 2016

this repo is not maintained. please look at https://github.com/AutomationWithAnsible/ansible-hostname

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants