#yum-config-manager --add-repo http://materials.example.com/yum.conf.d/ansible.repo #yum-config-manager --add-repo http://materials.example.com/yum.conf.d/extras.repo yum-config-manager --add-repo http://materials.example.com/yum.conf.d/additional.repo # This code creates the devops user with sudo privileges on the system. username=devops pass='$6$MZcUmP2e$o/NaIlvKrcyaxSGHWtgmwbyokmvAkRnpZfBDTmDCj3KJ4eTu7datVXI31sBbRS6jq/raOOb2tERN/RsmwKbCa1' # We create the user with sudo privileges if ! id ${username} &>/dev/null; then useradd -m -p ${pass} ${username} echo "devops ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/${username} fi