pub struct AnsiblePlay {Show 17 fields
pub name: Option<String>,
pub hosts: String,
pub become_enabled: Option<bool>,
pub become_user: Option<String>,
pub become_method: Option<String>,
pub gather_facts: Option<bool>,
pub vars: Option<HashMap<String, Value>>,
pub vars_files: Option<Vec<String>>,
pub pre_tasks: Option<Vec<AnsibleTask>>,
pub tasks: Vec<AnsibleTask>,
pub post_tasks: Option<Vec<AnsibleTask>>,
pub handlers: Option<Vec<AnsibleTask>>,
pub roles: Option<Vec<Value>>,
pub tags: Option<Vec<String>>,
pub serial_batch: Option<Value>,
pub max_fail_percentage: Option<u32>,
pub environment: Option<HashMap<String, String>>,
}Fields§
§name: Option<String>§hosts: String§become_enabled: Option<bool>§become_user: Option<String>§become_method: Option<String>§gather_facts: Option<bool>§vars: Option<HashMap<String, Value>>§vars_files: Option<Vec<String>>§pre_tasks: Option<Vec<AnsibleTask>>§tasks: Vec<AnsibleTask>§post_tasks: Option<Vec<AnsibleTask>>§handlers: Option<Vec<AnsibleTask>>§roles: Option<Vec<Value>>§serial_batch: Option<Value>§max_fail_percentage: Option<u32>§environment: Option<HashMap<String, String>>Implementations§
Source§impl AnsiblePlay
impl AnsiblePlay
pub fn from_value(data: &Value) -> Result<Self, String>
Sourcepub fn looks_like_playbook(data: &Value) -> bool
pub fn looks_like_playbook(data: &Value) -> bool
Check if a JSON value looks like an Ansible playbook (top-level array of plays)
Trait Implementations§
Source§impl Clone for AnsiblePlay
impl Clone for AnsiblePlay
Source§fn clone(&self) -> AnsiblePlay
fn clone(&self) -> AnsiblePlay
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnsiblePlay
impl Debug for AnsiblePlay
Source§impl<'de> Deserialize<'de> for AnsiblePlay
impl<'de> Deserialize<'de> for AnsiblePlay
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
Auto Trait Implementations§
impl Freeze for AnsiblePlay
impl RefUnwindSafe for AnsiblePlay
impl Send for AnsiblePlay
impl Sync for AnsiblePlay
impl Unpin for AnsiblePlay
impl UnsafeUnpin for AnsiblePlay
impl UnwindSafe for AnsiblePlay
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