--- - name: install packages package: name: mod_auth_gssapi state: installed notify: restart apache - name: set keytab path lineinfile: path: /etc/sysconfig/httpd regexp: "^KRB5_KTNAME=.*" line: KRB5_KTNAME=/etc/httpd/httpd.keytab notify: restart apache