On Wed, 2018-04-04 at 10:51 -0700, Kevin Fenzi wrote:
On 04/04/2018 10:46 AM, Kevin Fenzi wrote:
> On 04/04/2018 09:21 AM, James Hogarth wrote:
> > Can we please get some consistency here?
> > I noted today that firewalld has dropped python2-firewall but of course
> > ansible isn't switching to py3 for the controller (and therefore local)
> > until F29 and not all python modules are py3 compatible yet... and of
> > course we ship firewalld as our firewall in fedora.
> > This means that in F28 you can't just `yum install ansible
> > python-firewall` and do ansible localhost -m firewalld and have it work.
> Yeah, you would need to set ansible_python_interpreter for localhost,
> which you could add to your command line with -e...
> -e 'ansible_python_interpreter=/usr/bin/python3'
yum install ansible-python3 python-firewall
ansible localhost -m firewalld
(since ansible-python3 defaults to python3 for the control host/localhost)
This rather begs the question of whether there are any modules which
only work *with python 2*, though...
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | XMPP: adamw AT happyassassin . net