Hello.
I have faced with an issue that after provisioning of vagrant vm with installed docker there and HA proxy i can not start this vagrant VM from ansible playbook (last step).
Vagrant file is ok with proper parameters with GUI enabled just to inform you that it is not the case (point of failure or possible root cause of this).
Even more: i have tried to run AD-HOC ansible command locally and faced with the next errors:
[root@co1 ~]# ansible co1 -m shell -a “xclock”
co1 | FAILED | rc=1 >>
Error: Can’t open display:
[root@co1 ~]# ansible co1 -m shell -a “firefox”
co1 | FAILED | rc=1 >>
Error: GDK_BACKEND does not match available displays
[root@co1 ~]# ansible co1 -m shell -a “virtualbox”
co1 | FAILED | rc=-6 >>
Qt FATAL: QXcbConnection: Could not connect to display
[root@co1 ~]# ansible co1 -m shell -a “gedit”
co1 | FAILED | rc=1 >>
(gedit:11838): Gtk-WARNING **: cannot open display:
[root@cloud ~]# ansible all -m shell -a “gparted”
cloud | FAILED | rc=1 >>
Failed to execute operation: Access denied
(gpartedbin:66756): Gtk-WARNING **: cannot open display:
Failed to execute operation: Access denied
and so on.
The question is why Ansible can not run simple command end redirect output to screen?