If in the code I change
*from ansible.module_utils.network.comware5.comware5 import
comware5_provider_spec*
to
*from ansible.module_utils.network import comware5_provider_spec*
The ansible-playbook ends with:
File "/Users/bob/.ansible/plugins/action/comware5_config.py", line 18, in
bob@Mac:~/.ansible$ ansible --version
ansible 2.8.0
config file = /Users/bob/Work/Ansible/lab/ansible.cfg
configured module search path = ['/Users/bob/.ansible/plugins/modules',
'/usr/share/ansible/plugins/modules']
ansible python module location
Hi all- we're happy to announce that the general release of Ansible
2.8.1 is now available!
How do you get it?
--
$ pip install ansible==2.8.1 --user
The tar.gz of the releases can be found here:
* 2.8.1
https://releases.ansible.com/ansible/ansible-2.8.1.tar.gz
SHA256:
I have not tested but you want to do something like the following:
- set_fact
win_copy_src_var: phoenix_x86
when: "{{ ansible_architecture }} == 32-bit"
- set_fact
win_copy_src_var: phoenix_x64
when: "{{ ansible_architecture }} == 64-bit"
- name: copy_phoenix_folder
win_copy:
Hi,
- name: copy_phoenix_folder
win_copy:
src: phoenix_x86
when: "{{ ansible_architecture }} == 32-bit"
src: phoenix_x64
when: "{{ ansible_architecture }} == 64-bit"
dest: c:\\
I have written above code but scr will always be set to phoenix_x64,