I am having an issue with my GUI. I have setup a provisioned vpn via ansible that needs to be up before the graphical interface is up (lightdm on ubuntu lts 16.04).

So I read you shouldn't edit the lightdm service directly but do override on it. How do I override lightdm service on /etc/system/systemd ?

I know there are commands to override them, but I need to know how to make this with files so that I make them tasks from ansible.

  • Possible duplicate of How to override systemd unit file settings? – Thomas Sep 13 '19 at 9:57
  • not exactly, I am asking from an ansible perspective. – Panagiotis Sep 13 '19 at 11:58
  • Do you need the instructions in Ansible to create the drop-in file, or do you need help creating the drop-in file, or both? – Jeff Schaller Sep 13 '19 at 18:08
  • Both would be awesome as an example. – Panagiotis Sep 14 '19 at 2:08

I followed the instructions from coreos systemd overriding (drop-ins) services and I could make the appropriate ansible directives.

Thank you all.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.