Class: Ansible::Ruby::Modules::Cloudflare_dns

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/extras/network/cloudflare_dns.rb

Overview

Manages dns records via the Cloudflare API, see the docs: U(api.cloudflare.com/)

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#account_api_tokenString

Returns Account API token. You can obtain your API key from the bottom of the Cloudflare ‘My Account’ page, found here: U(www.cloudflare.com/a/account).

Returns:

  • (String)

    Account API token. You can obtain your API key from the bottom of the Cloudflare ‘My Account’ page, found here: U(www.cloudflare.com/a/account)



11
# File 'lib/ansible/ruby/modules/generated/extras/network/cloudflare_dns.rb', line 11

attribute :account_api_token

#account_emailString

Returns Account email.

Returns:

  • (String)

    Account email.



15
# File 'lib/ansible/ruby/modules/generated/extras/network/cloudflare_dns.rb', line 15

attribute :account_email

#portInteger?

Returns Service port. Required for C(type=SRV).

Returns:

  • (Integer, nil)

    Service port. Required for C(type=SRV)



19
# File 'lib/ansible/ruby/modules/generated/extras/network/cloudflare_dns.rb', line 19

attribute :port

#priorityString?

Returns Record priority. Required for C(type=MX) and C(type=SRV).

Returns:

  • (String, nil)

    Record priority. Required for C(type=MX) and C(type=SRV)



23
# File 'lib/ansible/ruby/modules/generated/extras/network/cloudflare_dns.rb', line 23

attribute :priority

#proto:tcp, ...

Returns Service protocol. Required for C(type=SRV).

Returns:

  • (:tcp, :udp, nil)

    Service protocol. Required for C(type=SRV)



27
# File 'lib/ansible/ruby/modules/generated/extras/network/cloudflare_dns.rb', line 27

attribute :proto

#recordString?

Returns Record to add. Required if C(state=present). Default is C(@) (e.g. the zone name).

Returns:

  • (String, nil)

    Record to add. Required if C(state=present). Default is C(@) (e.g. the zone name)



31
# File 'lib/ansible/ruby/modules/generated/extras/network/cloudflare_dns.rb', line 31

attribute :record

#serviceString?

Returns Record service. Required for C(type=SRV).

Returns:

  • (String, nil)

    Record service. Required for C(type=SRV)



35
# File 'lib/ansible/ruby/modules/generated/extras/network/cloudflare_dns.rb', line 35

attribute :service

#soloBoolean?

Returns Whether the record should be the only one for that record type and record name. Only use with C(state=present),This will delete all other records with the same record name and type.

Returns:

  • (Boolean, nil)

    Whether the record should be the only one for that record type and record name. Only use with C(state=present),This will delete all other records with the same record name and type.



39
# File 'lib/ansible/ruby/modules/generated/extras/network/cloudflare_dns.rb', line 39

attribute :solo

#state:present, ...

Returns Whether the record(s) should exist or not.

Returns:

  • (:present, :absent, nil)

    Whether the record(s) should exist or not



43
# File 'lib/ansible/ruby/modules/generated/extras/network/cloudflare_dns.rb', line 43

attribute :state

#timeoutInteger?

Returns Timeout for Cloudflare API calls.

Returns:

  • (Integer, nil)

    Timeout for Cloudflare API calls



47
# File 'lib/ansible/ruby/modules/generated/extras/network/cloudflare_dns.rb', line 47

attribute :timeout

#ttlString?

Returns The TTL to give the new record. Min 1 (automatic), max 2147483647.

Returns:

  • (String, nil)

    The TTL to give the new record. Min 1 (automatic), max 2147483647



51
# File 'lib/ansible/ruby/modules/generated/extras/network/cloudflare_dns.rb', line 51

attribute :ttl

#type:A, ...

Returns The type of DNS record to create. Required if C(state=present).

Returns:

  • (:A, :AAAA, :CNAME, :TXT, :SRV, :MX, :NS, :SPF, nil)

    The type of DNS record to create. Required if C(state=present)



55
# File 'lib/ansible/ruby/modules/generated/extras/network/cloudflare_dns.rb', line 55

attribute :type

#valueString?

Returns The record value. Required for C(state=present).

Returns:

  • (String, nil)

    The record value. Required for C(state=present)



59
# File 'lib/ansible/ruby/modules/generated/extras/network/cloudflare_dns.rb', line 59

attribute :value

#weightString?

Returns Service weight. Required for C(type=SRV).

Returns:

  • (String, nil)

    Service weight. Required for C(type=SRV)



63
# File 'lib/ansible/ruby/modules/generated/extras/network/cloudflare_dns.rb', line 63

attribute :weight

#zoneString

Returns The name of the Zone to work with (e.g. “example.com”). The Zone must already exist.

Returns:

  • (String)

    The name of the Zone to work with (e.g. “example.com”). The Zone must already exist.



67
# File 'lib/ansible/ruby/modules/generated/extras/network/cloudflare_dns.rb', line 67

attribute :zone