From: Loic Dachary <loic@dachary.org>
To: Thierry Delamare <t.delamare@laposte.net>
Cc: Ceph Development <ceph-devel@vger.kernel.org>
Subject: aarch64 conditional ansible stanza
Date: Thu, 7 Apr 2016 08:46:51 +0200 [thread overview]
Message-ID: <5706025B.3080205@dachary.org> (raw)
Hi Thierry,
In order to only install a template on architectures that are not aarch64, I changed
- name: Add sources list
template:
dest: /etc/apt/sources.list
src: "../../templates/apt/sources.list.{{ ansible_distribution_release | lower }}"
owner: root
group: root
mode: 0644
register: sources
into
- name: Add sources list
template:
dest: /etc/apt/sources.list
src: "../../templates/apt/sources.list.{{ ansible_distribution_release | lower }}"
owner: root
group: root
mode: 0644
register: sources
when: {{ansible_architecture}} != aarch64
Is there a better way to do that ?
Cheers
--
Loïc Dachary, Artisan Logiciel Libre
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2016-04-07 6:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-07 6:46 Loic Dachary [this message]
2016-04-07 13:58 ` aarch64 conditional ansible stanza Thierry Delamare
2016-04-07 14:07 ` Loic Dachary
2016-04-07 15:49 ` Thierry Delamare
2016-04-07 16:09 ` Loic Dachary
2016-04-07 16:35 ` Thierry Delamare
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5706025B.3080205@dachary.org \
--to=loic@dachary.org \
--cc=ceph-devel@vger.kernel.org \
--cc=t.delamare@laposte.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox