mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
(docs) Remove/update mentions of git submodule
in docs and error me… (#19941)
* (docs) Remove/update mentions of `git submodule` in docs and error messages. * Remove parenthetical per @dharmabumstead
This commit is contained in:
parent
0a7f2c202b
commit
a2b4ad9da0
4 changed files with 11 additions and 5 deletions
|
@ -333,12 +333,19 @@ Ansible also uses the following Python modules that need to be installed [1]_::
|
||||||
|
|
||||||
$ sudo pip install paramiko PyYAML Jinja2 httplib2 six
|
$ sudo pip install paramiko PyYAML Jinja2 httplib2 six
|
||||||
|
|
||||||
Note when updating ansible, be sure to not only update the source tree, but also the "submodules" in git
|
To update ansible checkouts, use pull-with-rebase so any local changes are replayed.
|
||||||
which point at Ansible's own modules (not the same kind of modules, alas).
|
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
$ git pull --rebase
|
$ git pull --rebase
|
||||||
|
|
||||||
|
Note: when updating ansible checkouts that are v2.2 and older, be sure to not
|
||||||
|
only update the source tree, but also the "submodules" in git which point at
|
||||||
|
Ansible's own modules.
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
$ git pull --rebase #same as above
|
||||||
$ git submodule update --init --recursive
|
$ git submodule update --init --recursive
|
||||||
|
|
||||||
Once running the env-setup script you'll be running from checkout and the default inventory file
|
Once running the env-setup script you'll be running from checkout and the default inventory file
|
||||||
|
|
|
@ -299,7 +299,7 @@ class ModuleArgsParser:
|
||||||
if 'ping' not in module_loader:
|
if 'ping' not in module_loader:
|
||||||
raise AnsibleParserError("The requested action was not found in configured module paths. "
|
raise AnsibleParserError("The requested action was not found in configured module paths. "
|
||||||
"Additionally, core modules are missing. If this is a checkout, "
|
"Additionally, core modules are missing. If this is a checkout, "
|
||||||
"run 'git submodule update --init --recursive' to correct this problem.",
|
"run 'git pull --rebase' to correct this problem.",
|
||||||
obj=self._task_ds)
|
obj=self._task_ds)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -146,7 +146,7 @@ class ActionBase(with_metaclass(ABCMeta, object)):
|
||||||
else:
|
else:
|
||||||
raise AnsibleError("The module %s was not found in configured module paths. "
|
raise AnsibleError("The module %s was not found in configured module paths. "
|
||||||
"Additionally, core modules are missing. If this is a checkout, "
|
"Additionally, core modules are missing. If this is a checkout, "
|
||||||
"run 'git submodule update --init --recursive' to correct this problem." % (module_name))
|
"run 'git pull --rebase' to correct this problem." % (module_name))
|
||||||
|
|
||||||
# insert shared code and arguments into the module
|
# insert shared code and arguments into the module
|
||||||
(module_data, module_style, module_shebang) = modify_module(module_name, module_path, module_args,
|
(module_data, module_style, module_shebang) = modify_module(module_name, module_path, module_args,
|
||||||
|
|
|
@ -34,7 +34,6 @@ pkgver() {
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $pkgname
|
cd $pkgname
|
||||||
git submodule update --init --recursive
|
|
||||||
make PYTHON=python2
|
make PYTHON=python2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue