Using Ansible 2.4.2.0 on Ubuntu 16.04, I try running a plaubook with the following:
- name: Create repo line in Ubuntu/Debian command: bash -c "echo \"deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable\" " register: docker_repo_line when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu' - debug: msg: "{{ docker_repo_line.stdout }}" when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu' - name: Add Docker Repo on Ubuntu/Debian apt_repository: repo: "{{ docker_repo_line.stdout }}" state: present when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu' However, the Debig Module set the message as "hello, world" when I run the command. Looking at the module documentation, this is the default if no msg is specified. However, I do I have line for hte message. Am I missing something 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1881fa94-1461-4040-9c36-7380681b079f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
