0
0

More than 1 year has passed since last update.

【ルール説明・shared】meta-no-tags

Posted at

こちらの記事はAnsible lint Advent Calendar 2022 カレンダー2 17日目の記事になります。

今回はルール meta-no-tags について説明します。

meta-no-tags

meta-no-tags は galaxy role のメタデータのgalaxy_tagsでタグに無効な文字列が使用されていないか検証します。タグに利用できる文字列は小文字のアルファベット数字になります。

問題のあるコード

meta/main.yml
---
# タグに無効な文字列が含まれている
galaxy_info:
  galaxy_tags: [MyTag#1, MyTag&^-]

修正されたコード

meta/main.yml
---
# タグで使用できる文字列は「小文字のアルファベット」・「数字」のみ
galaxy_info:
  galaxy_tags: [mytag1, mytag2]

参考サイト

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0