5/25/2023 0 Comments Yum ansible![]() ![]() ![]() Once the repository is installed, install Ansible with yum. To get Ansible for CentOS 7, first ensure that the CentOS 7 EPEL repository is installed: sudo yum install epel-release. what are the conditions I should implement to make a command/shell behave like Ansible's yum module and make it as much 'indepotent' as possible?įor the moment this is what I came up with: When installing/updating a package - name: INSTALL (C5) - Install packageĬhanged_when: '"Installing:" in output_install or "Updating:" in output_install'įailed_when: output_install is regex("No package. To begin exploring Ansible as a means of managing our various servers, we need to install the Ansible software on at least one machine. unfortunately, as far as I know, centos5 doesn't support Ansible's yum module so I have to use the 'command' or 'shell' modules and 'hard code' everything by myself. I'm currently working with a centos5 host and I have to install some packages with yum. ![]()
0 Comments
Leave a Reply. |