As mentioned I have  `python3-apt` installed *on both* my Ansible Server (*is 
it required on the Server?*) and Ansible Node. 
My node also has python 3.7.6

On Tuesday, September 1, 2020 at 4:42:33 PM UTC-5 ma...@sivel.net wrote:

> `python3-apt` needs to be installed on the target host, where you are 
> trying to install the apache2 package.
>
> On Tue, Sep 1, 2020 at 4:34 PM SamB <sba...@gmail.com> wrote:
>
>> I am Using Ubuntu 18.04, Ansible 2.9, Python 3.6.9, have 
>> installed python3-apt
>>
>> On a basic ansible command ansible -b all -m apt -a "name=apache2 
>> state=latest" *Get Error:*
>> FAILED! => { "ansible_facts": { "discovered_interpreter_python": 
>> "/usr/bin/python" }, "changed": false, "msg": "Could not import python 
>> modules: apt, apt_pkg. *Please install python3-apt package.*"  
>>
>> *Don't know if it is asking for this package on my Server machine or Node 
>> m/c - I have installed it on both.*
>>
>> *$ sudo apt-get install python3-apt*
>>
>> *$ ansible --version *
>> ansible 2.9.12 
>>  python version = 3.6.9 
>>
>> * $ python --version *
>> Python 3.7.6  
>>
>> Any ideas?
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Ansible Development" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to ansible-deve...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-devel/8083a703-0aca-4e70-973a-1827b10614a9n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-devel/8083a703-0aca-4e70-973a-1827b10614a9n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> -- 
> Matt Martz
> @sivel
> sivel.net
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/54191206-d4a3-4803-9bd1-0606ff3fa19bn%40googlegroups.com.

Reply via email to