This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |
redhat:other-redhat:ansible:start [2017/09/18 14:17] – [Weitere Themen zu Playbooks] michael | redhat:other-redhat:ansible:start [2020/05/13 15:01] (current) – [Next, we have a set of tasks:] michael |
---|
</code> | </code> |
| |
This module allows us to specify a package and the state that it should be in, which is "installed" in our case. The ''update-cache=true'' part tells our remote machine to update its package cache //(apt-get update)// prior to installing the software. | This module allows us to specify a package and the state that it should be in, which is "installed" in our case. The ''update_cache=true'' part tells our remote machine to update its package cache //(apt-get update)// prior to installing the software. |
| |
The "**notify**" item contains a list with one item, which is called "start nginx". This is not an internal Ansible command, it is a reference to a handler, which can perform certain functions when it is called from within a task. //We will define the "start nginx" handler below.// | The "**notify**" item contains a list with one item, which is called "start nginx". This is not an internal Ansible command, it is a reference to a handler, which can perform certain functions when it is called from within a task. //We will define the "start nginx" handler below.// |