Class: Ansible::Ruby::Modules::Pip

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/core/packaging/language/pip.rb

Instance Method Summary collapse

Methods inherited from Base

#to_h

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

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

Constructor Details

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

Instance Method Details

#chdirObject?

Returns cd into this directory before running the command.

Returns:

  • (Object, nil)

    cd into this directory before running the command



49
# File 'lib/ansible/ruby/modules/generated/core/packaging/language/pip.rb', line 49

attribute :chdir

#editableBoolean?

Returns Pass the editable flag for versioning URLs.

Returns:

  • (Boolean, nil)

    Pass the editable flag for versioning URLs.



45
# File 'lib/ansible/ruby/modules/generated/core/packaging/language/pip.rb', line 45

attribute :editable

#executableString?

Returns The explicit executable or a pathname to the executable to be used to run pip for a specific version of Python installed in the system. For example C(pip-3.3), if there are both Python 2.7 and 3.3 installations in the system and you want to run pip for the Python 3.3 installation. It cannot be specified together with the ‘virtualenv’ parameter (added in 2.1).

Returns:

  • (String, nil)

    The explicit executable or a pathname to the executable to be used to run pip for a specific version of Python installed in the system. For example C(pip-3.3), if there are both Python 2.7 and 3.3 installations in the system and you want to run pip for the Python 3.3 installation. It cannot be specified together with the ‘virtualenv’ parameter (added in 2.1).



52
# File 'lib/ansible/ruby/modules/generated/core/packaging/language/pip.rb', line 52

attribute :executable

#extra_argsString?

Returns Extra arguments passed to pip.

Returns:

  • (String, nil)

    Extra arguments passed to pip.



41
# File 'lib/ansible/ruby/modules/generated/core/packaging/language/pip.rb', line 41

attribute :extra_args

#nameString?

Returns The name of a Python library to install or the url of the remote package.

Returns:

  • (String, nil)

    The name of a Python library to install or the url of the remote package.



10
# File 'lib/ansible/ruby/modules/generated/core/packaging/language/pip.rb', line 10

attribute :name

#requirementsString?

Returns The path to a pip requirements file, which should be local to the remote system. File can be specified as a relative path if using the chdir option.

Returns:

  • (String, nil)

    The path to a pip requirements file, which should be local to the remote system. File can be specified as a relative path if using the chdir option.



18
# File 'lib/ansible/ruby/modules/generated/core/packaging/language/pip.rb', line 18

attribute :requirements

#state:present, ...

Returns The state of module,The ‘forcereinstall’ option is only available in Ansible 2.1 and above.

Returns:

  • (:present, :absent, :latest, :forcereinstall, nil)

    The state of module,The ‘forcereinstall’ option is only available in Ansible 2.1 and above.



37
# File 'lib/ansible/ruby/modules/generated/core/packaging/language/pip.rb', line 37

attribute :state

#umaskString?

Returns The system umask to apply before installing the pip package. This is useful, for example, when installing on systems that have a very restrictive umask by default (e.g., 0077) and you want to pip install packages which are to be used by all users. Note that this requires you to specify desired umask mode in octal, with a leading 0 (e.g., 0077).

Returns:

  • (String, nil)

    The system umask to apply before installing the pip package. This is useful, for example, when installing on systems that have a very restrictive umask by default (e.g., 0077) and you want to pip install packages which are to be used by all users. Note that this requires you to specify desired umask mode in octal, with a leading 0 (e.g., 0077).



56
# File 'lib/ansible/ruby/modules/generated/core/packaging/language/pip.rb', line 56

attribute :umask

#versionString?

Returns The version number to install of the Python library specified in the I(name) parameter.

Returns:

  • (String, nil)

    The version number to install of the Python library specified in the I(name) parameter



14
# File 'lib/ansible/ruby/modules/generated/core/packaging/language/pip.rb', line 14

attribute :version

#virtualenvString?

Returns An optional path to a I(virtualenv) directory to install into. It cannot be specified together with the ‘executable’ parameter (added in 2.1).

Returns:

  • (String, nil)

    An optional path to a I(virtualenv) directory to install into. It cannot be specified together with the ‘executable’ parameter (added in 2.1).



22
# File 'lib/ansible/ruby/modules/generated/core/packaging/language/pip.rb', line 22

attribute :virtualenv

#virtualenv_commandString?

Returns The command or a pathname to the command to create the virtual environment with. For example C(pyvenv), C(virtualenv), C(virtualenv2), C(~/bin/virtualenv), C(/usr/local/bin/virtualenv).

Returns:

  • (String, nil)

    The command or a pathname to the command to create the virtual environment with. For example C(pyvenv), C(virtualenv), C(virtualenv2), C(~/bin/virtualenv), C(/usr/local/bin/virtualenv).



30
# File 'lib/ansible/ruby/modules/generated/core/packaging/language/pip.rb', line 30

attribute :virtualenv_command

#virtualenv_pythonObject?

Returns The Python executable used for creating the virtual environment. For example C(python3.4), C(python2.7). When not specified, the system Python version is used.

Returns:

  • (Object, nil)

    The Python executable used for creating the virtual environment. For example C(python3.4), C(python2.7). When not specified, the system Python version is used.



34
# File 'lib/ansible/ruby/modules/generated/core/packaging/language/pip.rb', line 34

attribute :virtualenv_python

#virtualenv_site_packages:yes, ...

Returns Whether the virtual environment will inherit packages from the global site-packages directory. Note that if this setting is changed on an already existing virtual environment it will not have any effect, the environment must be deleted and newly created.

Returns:

  • (:yes, :no, nil)

    Whether the virtual environment will inherit packages from the global site-packages directory. Note that if this setting is changed on an already existing virtual environment it will not have any effect, the environment must be deleted and newly created.



26
# File 'lib/ansible/ruby/modules/generated/core/packaging/language/pip.rb', line 26

attribute :virtualenv_site_packages