pub struct Task {
pub module: String,
pub args: Map<String, Value>,
pub ignore_errors: bool,
pub timeout: Option<u64>,
pub environment: BTreeMap<String, String>,
}Expand description
One task, fully resolved by the controller: no templates left.
Fields§
§module: StringModule name as written in the playbook, short or fully qualified.
args: Map<String, Value>§ignore_errors: bool§timeout: Option<u64>Seconds allowed for the module to run; the agent kills it past that (Ansible’s timeout).
environment: BTreeMap<String, String>Variables the module’s process runs with, added to the ones the agent already has
(Ansible’s environment). Resolved by the controller: the play’s layer, the block’s and
the task’s are merged and rendered there, so the agent only sets what it is handed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Task
impl<'de> Deserialize<'de> for Task
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Task
Auto Trait Implementations§
impl Freeze for Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnsafeUnpin for Task
impl UnwindSafe for Task
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more