Score:0

Ansible - do you have to include/import from other files?

bo flag

I was not able to find anything on this after a lot of googling. All i could find were various kinds and ways of importing and including other tasks, but is it not possible to have two tasks in one file, and have one include the other - sort of like functions in most common programming languages? In my specific case i seem to need this to iterate over two lists at once - i tried including the name of the other task in the same file but that didnt work

Score:1
in flag

No, this is not possible. You need to move your task to an external file.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.