diff options
author | error10 <error@ioerror.us> | 2015-10-30 20:41:05 -0400 |
---|---|---|
committer | error10 <error@ioerror.us> | 2015-10-30 20:41:05 -0400 |
commit | 9c5cec32545510875de3ca2e149e1aff2909102e (patch) | |
tree | c3b9e99813b3a57c5c95d099f8776907254b8a16 /playbooks/libvirt/openshift-cluster/templates | |
parent | 9e586db2931863780ce6598bb64b3a134c2fdb27 (diff) | |
download | openshift-9c5cec32545510875de3ca2e149e1aff2909102e.tar.gz openshift-9c5cec32545510875de3ca2e149e1aff2909102e.tar.bz2 openshift-9c5cec32545510875de3ca2e149e1aff2909102e.tar.xz openshift-9c5cec32545510875de3ca2e149e1aff2909102e.zip |
Don't require tty to run sudo
Set Defaults !requiretty so that ansible can run sudo without a terminal. Fixes #773
Diffstat (limited to 'playbooks/libvirt/openshift-cluster/templates')
-rw-r--r-- | playbooks/libvirt/openshift-cluster/templates/user-data | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/playbooks/libvirt/openshift-cluster/templates/user-data b/playbooks/libvirt/openshift-cluster/templates/user-data index eacae7c7e..cf57e6489 100644 --- a/playbooks/libvirt/openshift-cluster/templates/user-data +++ b/playbooks/libvirt/openshift-cluster/templates/user-data @@ -21,3 +21,4 @@ ssh_authorized_keys: runcmd: - NETWORK_CONFIG=/etc/sysconfig/network-scripts/ifcfg-eth0; if ! grep DHCP_HOSTNAME ${NETWORK_CONFIG}; then echo 'DHCP_HOSTNAME="{{ item[0] }}.example.com"' >> ${NETWORK_CONFIG}; fi; pkill -9 dhclient; service network restart + - echo "Defaults !requiretty" >> /etc/sudoers.d/00-no-requiretty |