Skip to main content

AnsibleTask

Struct AnsibleTask 

Source
pub struct AnsibleTask {
Show 48 fields pub name: Option<String>, pub shell: Option<Value>, pub command: Option<Value>, pub script: Option<String>, pub copy: Option<Value>, pub template: Option<Value>, pub file: Option<Value>, pub apt: Option<Value>, pub yum: Option<Value>, pub dnf: Option<Value>, pub pip: Option<Value>, pub systemd: Option<Value>, pub service: Option<Value>, pub docker_container: Option<Value>, pub kubernetes: Option<Value>, pub get_url: Option<Value>, pub unarchive: Option<Value>, pub git: Option<Value>, pub cron: Option<Value>, pub user: Option<Value>, pub group: Option<Value>, pub lineinfile: Option<Value>, pub replace: Option<Value>, pub stat: Option<Value>, pub debug: Option<Value>, pub assert: Option<Value>, pub wait_for: Option<Value>, pub pause: Option<Value>, pub set_fact: Option<Value>, pub register: Option<String>, pub when: Option<Value>, pub loop_items: Option<Value>, pub with_items: Option<Value>, pub with_dict: Option<Value>, pub with_fileglob: Option<String>, pub until: Option<Value>, pub retries: Option<u32>, pub delay: Option<u32>, pub changed_when: Option<Value>, pub failed_when: Option<Value>, pub ignore_errors: Option<bool>, pub notify: Option<Value>, pub tags: Option<Value>, pub task_become: Option<bool>, pub task_become_user: Option<String>, pub delegate_to: Option<String>, pub local_action: Option<Value>, pub other: HashMap<String, Value>,
}

Fields§

§name: Option<String>§shell: Option<Value>§command: Option<Value>§script: Option<String>§copy: Option<Value>§template: Option<Value>§file: Option<Value>§apt: Option<Value>§yum: Option<Value>§dnf: Option<Value>§pip: Option<Value>§systemd: Option<Value>§service: Option<Value>§docker_container: Option<Value>§kubernetes: Option<Value>§get_url: Option<Value>§unarchive: Option<Value>§git: Option<Value>§cron: Option<Value>§user: Option<Value>§group: Option<Value>§lineinfile: Option<Value>§replace: Option<Value>§stat: Option<Value>§debug: Option<Value>§assert: Option<Value>§wait_for: Option<Value>§pause: Option<Value>§set_fact: Option<Value>§register: Option<String>§when: Option<Value>§loop_items: Option<Value>§with_items: Option<Value>§with_dict: Option<Value>§with_fileglob: Option<String>§until: Option<Value>§retries: Option<u32>§delay: Option<u32>§changed_when: Option<Value>§failed_when: Option<Value>§ignore_errors: Option<bool>§notify: Option<Value>§tags: Option<Value>§task_become: Option<bool>§task_become_user: Option<String>§delegate_to: Option<String>§local_action: Option<Value>§other: HashMap<String, Value>

Trait Implementations§

Source§

impl Clone for AnsibleTask

Source§

fn clone(&self) -> AnsibleTask

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AnsibleTask

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for AnsibleTask

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for AnsibleTask

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,