1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
.. _cce-snap:
Manage snaps
************
These examples will show you how to set up ``snapd`` and install snap packages.
For a full list of keys, refer to the :ref:`snap module <mod_cc_snap>` schema.
General usage
=============
.. literalinclude:: ../../../module-docs/cc_snap/example1.yaml
:language: yaml
:linenos:
Omitting the snap command
=========================
For convenience, the ``snap`` command can be omitted when specifying commands
as a list, and ``'snap'`` will automatically be prepended. The following
commands are all equivalent:
.. literalinclude:: ../../../module-docs/cc_snap/example2.yaml
:language: yaml
:linenos:
Using lists
===========
You can use a list of commands:
.. literalinclude:: ../../../module-docs/cc_snap/example3.yaml
:language: yaml
:linenos:
And you can also use a list of assertions:
.. literalinclude:: ../../../module-docs/cc_snap/example4.yaml
:language: yaml
:linenos:
|